A full-stack web application for student registration and management built using:
- Frontend: React.js, Vite, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB
- Node.js (v14 or later)
- MongoDB
- npm or yarn
- Vercel Account (for deployment)
- Navigate to the backend directory
cd backend- Install dependencies
npm install- Create a
.envfile with the following variables:
MONGODB_URI: Your MongoDB connection stringJWT_SECRET: A secret key for JWT authenticationPORT: Backend server port (default: 3000)BACKEND_URL: Backend server URLFRONTEND_URL: Frontend application URL
- Start the backend server
npm start- Navigate to the frontend directory
cd frontend- Install dependencies
npm install- Create a
.envfile with the following variables:
VITE_BACKEND_URL: Backend server URLVITE_FRONTEND_URL: Frontend application URL
Note: In the frontend code, use import.meta.env.VITE_BACKEND_URL to access these variables.
- Start the frontend development server
npm run dev- Create a new project in Vercel
- Import your backend repository
- Set environment variables in Vercel dashboard:
MONGODB_URIJWT_SECRETBACKEND_URLFRONTEND_URL
- Vercel will automatically detect and deploy using the
vercel.json
- Create a new project in Vercel
- Import your frontend repository
- Set environment variables in Vercel dashboard:
VITE_BACKEND_URLVITE_FRONTEND_URL
- Vercel will automatically detect and deploy using the
vercel.json
- User Registration
- User Authentication
- Student Dashboard
- Responsive Design
- React.js
- Tailwind CSS
- Node.js
- Express.js
- MongoDB
- JWT Authentication