signmate-demo.mp4
This guide explains how to set up and run the frontend and backend of your project.
Ensure you have the following installed:
cd backendnpm install- Copy
.env.exampleand rename it to.env - Fill in the required values:
MONGODB_URL=your_mongodb_connection_string PORT=your_preferred_port JWT_SECRET=your_secret_key
- Development Mode (with Nodemon for auto-restart):
npm run dev
- Production Mode:
npm start
cd frontendnpm installnpm run dev- The frontend should now be running at
http://localhost:5173/(default Vite port).
npm run buildnpm run previewIf you want to run both simultaneously, you can open two terminals:
- Start the backend:
npm run devinside thebackendfolder. - Start the frontend:
npm run devinside thefrontendfolder.
- Ensure MongoDB is running if using a local database.
- Update
.envwith proper credentials. - If using a different port for the backend, update frontend API calls accordingly.
Happy coding! 🚀