API for ASD devotionals
An API for retrieve ASD devotionals.
The database connection string is read from the MONGODB_URI environment variable, not hardcoded in the source. See Configuration.
Feel free to use it.
# Clone the repository
$ git clone https://github.com/jonathangomz/devotionals-api.git
# Install the dependencies
$ cd devotionals-api
$ npm installThe app needs a MongoDB connection string. It is read from the MONGODB_URI
environment variable and is not stored in the repository.
# Create your local env file from the template
$ cp .env.example .env
# Then edit .env and set MONGODB_URI to your own connection stringMONGODB_URI is required: the app throws on startup if it is missing rather
than attempting to connect to an undefined URI. .env is gitignored, so never
commit it or paste a real credential into the source.
Note: the original Heroku deployment for this project is retired. The
Procfileis left over from it and is no longer used.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covRead the Documentation for more information of how to use the api.
- Author - Jonathan Gomez
- Twitter - @jonathangomz