mustan-ali / Byte-Blog

Blog related to technology built using MERN Stack.

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>
    MONGO_URL=<database-connection-string>
    JWT_SECRET=<jwt-secret-key>
    FrontendURL=<react-frontend-url>
  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:

    npm install
    node index.js
  2. In the Frontend folder, run the following commands:

    npm install
    npm start

About

Blog related to technology built using MERN Stack.


Languages

Language:JavaScript 98.7%Language:HTML 1.2%Language:CSS 0.1%