A full-stack modern web application built for software engineers to manage their interview preparation, DSA tracking, job applications, and learning notes.
- Frontend: Next.js (App Router), Tailwind CSS v4, Lucide Icons, Axios.
- Backend: Node.js, Express.js, Mongoose.
- Database: MongoDB.
- Authentication: Custom JWT-based authentication.
- Navigate to the
backendfolder:cd backend - Install dependencies:
npm install - Create a
.envfile in thebackendfolder with the following variables:(Note: ReplacePORT=5000 MONGO_URI=mongodb://localhost:27017/devprepos JWT_SECRET=your_super_secret_jwt_key
MONGO_URIwith your MongoDB Atlas connection string for production) - Start the development server:
npm run dev(ornode server.js)
The backend will be running at http://localhost:5000.
- Navigate to the
frontendfolder:cd frontend - Install dependencies:
npm install - Create a
.env.localfile in thefrontendfolder with the following variable:NEXT_PUBLIC_API_URL=http://localhost:5000/api
- Start the Next.js development server:
npm run dev
The frontend will be running at http://localhost:3000.
- Push the code to a GitHub repository.
- Log in to Render and create a new Web Service.
- Connect your GitHub repository and select the
backendroot directory if deploying from a monorepo, or push the backend as a separate repo. - Build Command:
npm install - Start Command:
node server.js - Add Environment Variables:
MONGO_URI(Your MongoDB Atlas connection string)JWT_SECRET(A strong random secret)PORT(Optionally specify, Render assigns one dynamically)
- Deploy the service and note the Render API URL (e.g.,
https://devprep-api.onrender.com).
- Log in to Vercel and create a new project.
- Import the GitHub repository containing the frontend code.
- If using a monorepo, set the Root Directory to
frontend. - Add the Environment Variable:
NEXT_PUBLIC_API_URL-> Set this to your deployed Render API URL (e.g.,https://devprep-api.onrender.com/api).
- Click Deploy. Vercel will automatically build (
npm run build) and host your Next.js application.