A public API for the web app, and mobile apps to consume.
If you are reading this, thanks for stopping by. You may be familiar with the Redadalertas project.
This project is part of that. This repo will house the code to make the public facing API.
Make sure you have the following installed on your computer
Clone the repository
Setup the environment variables in the / directory:
cp src/.env.example src/.env
Install node modules in the /src directory, we recommend using Yarn:
yarnin the /src directory
Run MongoDB service:
brew services start mongodb
Update the MongoDB database:
yarn run bootstrapin the /src directory
To shut down server:
Ctrl + cin server terminal
To shut down database:
brew services stop mongodb
yarn start: starts the server (also
yarn test: performs testing (also
yarn run lint: runs the linter (also
npm run lint)
yarn run bootstrap: populates your local mongo db with sample data (also
npm run bootstrap)