A barebones user authentication Node.js app using Express 4.
This application supports the Getting Started with Node on Heroku article - check it out.
Run your mongo locally with 'mongod'
Create a database called 'authdemo' if you want it to work right out of the box
$ git clone [email protected]:zprager/mongo-express-auth-demo.git # or clone your own fork
$ cd mongo-express-auth-demo
$ npm install
$ npm start
Use the 'Auth Demo.postman_collection.json' in root folder, and import it into PostMan. It will seed your test collection.
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
You will also have to set up your mongo database on Heroku and update your connection link.
For more information about using Node.js on Heroku, see these Dev Center articles: