Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 627 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 627 Bytes

Steps to use the template:

The best way to use it is to fork it and then use it in your own projects. Once you have it cloned in your localhost from your fork, make sure you implement the next steps:

  1. Run npm install
  2. create a new file at the root of your project named .env. The contents should be: JWT_SECRET=THE_SUPER_SECRET_FOR_YOUR_JWT_TOKENS. This is the token used to encrypt your authorization tokens when a user successfully logs in.
  3. Change the mongo database to the one you are using in line: 14. mongoose.connect( process.env.MONGOLAB_URI || "mongodb://localhost/your_database_name_goes_here" );