ceghap / basic-express-react-auth

just a basic implementation of react auth with express backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

just a basic implementation of react auth with express backend


Languages

Language:JavaScript 92.3%Language:CSS 5.6%Language:HTML 2.0%