Skip to content

just a basic implementation of react auth with express backend

Notifications You must be signed in to change notification settings

ceghap/basic-express-react-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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 = [email protected]
        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

About

just a basic implementation of react auth with express backend

Topics

Resources

Stars

Watchers

Forks