Trello Management app is mern stack Task Management Application built with Next.js for the frontend and Node.js with Express and MongoDB for the backend. The application allows users to register, log in, and manage tasks with features such as creating, updating, deleting, and retrieving tasks.
Cd into the folder:
cd backend
Install dependencies:
npm install
Create a .env
file in the backend
directory and add the following environment variables:
PORT=8080
MONGODB_URI=YOUR_MONGODBURL
JWT_SECRET=your_jwt_secret
Replace your_jwt_secret
with a secure secret key.
Start the backend server:
npm run dev
The backend server will run on http://localhost:8080
.
Navigate to the frontend directory:
cd ../frontend
Install dependencies:
npm install
Create a .env.local
file in the frontend
directory and add the following environment variable:
NEXT_PUBLIC_BACKEND_URL=http://localhost:8080
Start the frontend server:
npm run dev
The frontend application will run on http://localhost:3000
.