The Open Ghana Data project is a collection of endpoints to retrieve json-formatted data about Ghana. Hosted live at Open Ghana Data
-
Node: This project uses
Node v 10.0.0
. -
Docker: For that container goodness
-
MongoDB: Because we're web scale. Lolz.
-
Git: We use Git and GitHub for version control and collaboration. If you don't have a GitHub account already you can create one here. Follow instructions here to install the latest version of Git for your system.
- Clone the repository
- Run
npm install
to grab all the dependencies of the project - Create a copy of the
.env.example
file in the project root directory, rename it to.env
and set the values forPORT
andMONGO_URI
variables. All environment variables go into this file. - Run
docker-compose up -d
to startup the server and mongo database in containers - Alternativley run
npm start
to start the server and make sure you have a mongo instance running (with the uri set in.env
. - Run
npm run seed
to seed the database
- To run the entire test suite, run
npm test
- To run integration tests, run
npm test:integration
- To run the unit tests, run
npm test:unit
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Setup your editor to use the style guide in the .eslintrc
- Git Hooks to lint before push