This application consists of three main parts:
- Frontend: React (Vite)
- Backend: Node.js + Express
- Database: MongoDB (Atlas recommended)
- Create an account at https://www.mongodb.com/cloud/atlas
- Create a new cluster.
- In Database Access, create a user and password.
- In Network Access, allow access from anywhere (
0.0.0.0/0) or specific IP ranges of your backend host. - Get the connection string (URI) to use for your backend environment variables.
- Create an account on Render (render.com).
- Create a new "Web Service".
- Connect your GitHub repository containing the
/serverfolder. - Set the Root Directory to
server. - Build Command:
npm install - Start Command:
node index.js - Add Environment Variables:
PORT: 5000 (usually default)MONGO_URI: (Your MongoDB Atlas connection string)JWT_SECRET: (A strong random string)
Note on Puppeteer: If you expand to use Puppeteer for scraping platforms without APIs (e.g., GeeksforGeeks), deploying Puppeteer on Render requires specific configurations since Chromium needs to be installed in the Linux environment. Render provides a specific build environment for Puppeteer if required.
- Create an account on Vercel (vercel.com).
- Create a New Project and connect your GitHub repository.
- The Root Directory should be
client. - Vercel will auto-detect Vite. The build command will be
npm run buildand output directorydist. - IMPORTANT: You need to update the API base URL in your frontend code before deploying. Change
http://localhost:5000to your deployed backend URL.- Tip: Use Vite environment variables (
import.meta.env.VITE_API_URL) to handle this dynamically between dev and prod.
- Tip: Use Vite environment variables (
The CodeTrackrExtension.zip file has been automatically bundled and is placed inside the client/public/ directory so users can download it directly from the Dashboard navigation bar!