Boilerplate for a production Express JSON API
A super simple production express app that allows CRUD on locational microposts. With a slightly more sane project structure than default to honor loose mvc rules. JWT for stateless authentication. Mongoose for easy hookup to MongoDB. dot-env for development configuration.
Install Node, MongoDB, and nodemon (optional) locally
https://nodejs.org/en/#download
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
then start the MongoDB daemon in the background with mongod
sudo npm install -g nodemon
Make sure the MongoDB daemon is running locally (Copy and paste)
git clone https://github.com/0xc00010ff/express-launch.git &&
cd express-launch &&
npm install &&
nodemon
Use Postman for playing with the API and Robo3T for accessing Mongo visually.
When ready, remove it from git with git rm --cached .env