Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 724 Bytes

README.md

File metadata and controls

35 lines (32 loc) · 724 Bytes

Requirement

  • Nodejs
  • Docker
  • Sendgrid (email provider)

Getting started

  1. start the database instance in docker
    1. cd back-end
    2. docker compose up
  2. install dependencies
    • backend
      1. cd back-end
      2. npm i
    • frontend
      1. cd front-end
      2. npm i
  3. create .env files and fill in this info
        JWT_SECRET = secret
        DB_NAME = reactauth
        DB_USER = root
        DB_PASS = root
        DB_PORT = 27017
        SENDGRID_API_KEY = xxxxx
        SENDER_EMAIL = xxxx@xxx.xxx
        GOOGLE_CLIENT_ID = xxx
        GOOGLE_CLIENT_SECRET = xxx
    
  4. start both frontend and backend
    • cd front-end
    • npm run start
    • cd back-end
    • npm run start