DCodeMania / node_express_auth_and_posts_management_system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Setup

Required Environment Variables

Create a .env file in the root directory of the project and add the following content:

  • PORT = 3000
  • MONGO_DB_URI = mongodb://localhost:27017/
  • COOKIE_SECRET = secret
  • SESSION_SECRET = secret

Install dependencies

Run the following command to install the dependencies:

npm install

Create Uploads Directory

Create a directory named uploads in the root directory of the project.

Start the server

Run the following command to start the server:

npm run dev

About


Languages

Language:EJS 53.6%Language:JavaScript 46.4%