A full-stack web application for managing a bookstore with features like user authentication, admin dashboard, cart & checkout, and category-based filtering.
- Frontend: React, Vite, Firebase Auth
- Backend: Node.js, Express.js
- Database: MongoDB (Mongoose)
- Authentication: JWT + Firebase
- Clone or unzip the project folder
- Navigate to the frontend directory:
cd frontend - Create a .env.local file in the frontend root directory and add Firebase environment variables: VITE_API_KEY="..." VITE_AUTH_DOMAIN="..." VITE_PROJECT_ID="..." VITE_STORAGE_BUCKET="..." VITE_MESSAGING_SENDER_ID="..." VITE_APP_ID="..."
- Install dependencies: npm install
- Run the frontend: npm run dev
- Navigate to the backend directory: cd backend
- Install dependencies: npm install
- Create a .env file and add environment variables: DB_URL="mongodb+srv://:@cluster0.mongodb.net/book-store?retryWrites=true&w=majority" JWT_SECRET_KEY="your-secret-key"
- Run the backend in development mode: npm run start:dev
##Additional Notes Ensure both frontend and backend are running concurrently. Firebase configuration is required for authentication. MongoDB Atlas is recommended for the database setup.