Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 843 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 843 Bytes

Express-boilerplate

Ready to use boilerplate for your next react-api shipped with a ready authentification logic, model and route

how to use

  • fork it

  • clone it

  • create a mongodb cluster/db

  • add a .env file and insert :

    • MONGO_USER = <put here the username from the mongodb server>
    • MONGO_PSW = <put here the password from the mongodb server>
    • MONGO_SERVER = <put here your server address>
    • MONGO_DB = <put here your db name>
    • MONGO_CONNECTION_STRING = mongodb+srv://${MONGO_USER}:${MONGO_PSW}@${MONGO_SERVER}/${MONGO_DB}?retryWrites=true&w=majority
    • ACCESS_TOKEN_SECRET = <put here a secret key that would help you generate uniques access tokens>
    • REFRESH_TOKEN_SECRET = <put here a secret key that would help you generate uniques access tokens>
  • npm install

  • npm start and enjoy !