Setup Guide
Prerequisites
- Node.js (v16 or newer)
- npm
- MongoDB Atlas account
Installation
- Clone the repository bash git clone cd Cs110-Project
- Install backend dependencies cd backend npm install
- Install frontend dependencies cd ../frontend npm install
Configuration
- MongoDB connection Open backend/index.js Replacee the current MongoDB connection string with your own:
mongodb+srv://clope265:Passwordiscrazyngl%23092@dineperks-project.vepzatg.mongodb.net/
- Seed the database cd backend node seed.js
Running the Application
- Start the backend
cd backend node index.js
- Start the frontend
cd frontend npm start
default accountss Admin: admin123 / password123 Admin: cruzl123 / password321 User: lopez123 / hello User: guy123 / 12345
Dependencies
Backend packages express cors helmet mongodb google-auth-library jsonwebtoken bcryptjs express-validator cookie-parser
Frontend packages react react-router-dom bootstrap react-scripts
Troubleshooting If you see “module not found”, run npm install in the frontend and bcakend directories