- run
git clone https://github.com/aarondtrng/Habit-Appto copy the project into the directory you are in - run
cd frontendto go into the backend folder and then runnpm i - run
cd backendto go into the backend folder and then runnpm i - after adding your environment variables, run
npm run devin the frontend and backend in seperate terminals
Put these variables into your .env with your own keys
- MONGODB_URI=YOUR_URI
- JWT_SECRET=YOUR_TOKEN
- PORT=8000
- NODE_ENV=development
- FRONTEND_URL="http://localhost:5173"
- VITE_BACKEND_URL="http://localhost:8000"
- EMAIL_USER=YOUR_EMAIL
- EMAIL_PASSWORD=YOUR_PASSWORD (This is from the Google App Passwords)