JSON API for the Mottoto Web App. This API uses Mongoose and MongoDB.
Install dependencies with yarn
or npm install
.
yarn
Mottoto uses Mongoose for object modeling and MongoDB as a database. You must have MongoDB installed and the MongoDB daemon running in order to develop.
Run the MongoDB daemon in it's own session.
mongod
The development database is named mottoto
and the database used for testing is
called mottoto-test
. You'll need a .env
for mongoose to connect to the development
database.
Start the API server
yarn start
This project uses Heroku as a host for the staging environment. In order to
push to staging you must have permission to access the Heroku project. You can
then push to Heroku with yarn deploy:staging
as long as your staging remote
is set to the Heroku git endpoint for this project.
Mocha and Chai are used to test the routes. The tests should cover every publicly accessible route.
yarn test