-
-
Notifications
You must be signed in to change notification settings - Fork 100
Developing Finda
Thanks for helping build Finda! It's built by volunteers, so it's people like you who move the project forward.
We've collected some documentation on the pieces used in Finda at Development Resources, so if you're unfamiliar with anything that's a good place to start.
- This app reads in data.geojson (provided by the end user) and config.json (customized by the end user).
- It's all client-side Javascript with a single page for the entire app, so non-developers can deploy quickly.
- Keep everything human-readable.
-
Open the Terminal application.
-
Make sure the command-line tool Git is installed by entering
which git
into Terminal. If the command returns a filepath, you're all set. (If Git is not installed, install it.)
-
Navigate to the folder you'd like to copy the code to by using the cd command.
-
Clone the repository (i.e. copy the code) from where it's hosted online. Do this by entering
git clone [email protected]:codeforboston/finda.git
-
Open the folder you just downloaded using your favorite text editor. (We use Sublime Text.)
Finda requires that your data is in GeoJSON format, since it's an open, web-friendly format.
If your data is not in GeoJSON format, you might try converting it using Ogre. We haven't used it ourselves, but it seems worth a try. We'll recommend an option we've tested in the future.
To consume a remote URL instead of the local data.geojson
, open up config.json
and modify the geojson_source
variable. By default, this variable loads the local data.geojson
.
To configure the Finda app to display your data, fill in the configuration file.
TODO: Finish this section.
You can edit the display of your application using style.css
in the styles
directory.
TODO: Finish this section.
Finda comes with a small set of unittests that you can run with Karma.
npm install -g karma
karma server # starts a server which automatically runs the tests