mustan-ali / User-Authentication

Node & Express User Authentication with Bcrypt and JWT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting Up Environment Variables

  1. In the Backend folder, create an .env file with the following content:

    PORT=<backend-port>
    MONGODB_URI=<database-connection-string>
    JWT_SECRET=<jwt-secret>
  2. In the Frontend folder, create an .env file with the following content:

    REACT_APP_BACKEND_URL=<backend-url>

Running the Application

  1. In the Backend folder, run the following commands:

    node server.js
  2. In the Frontend folder, run the following commands:

    npm start

About

Node & Express User Authentication with Bcrypt and JWT


Languages

Language:JavaScript 82.8%Language:CSS 13.0%Language:HTML 4.2%