A modern full-stack web application combining a burger restaurant and pet store in one platform. Built with React, Node.js, Express, and MongoDB.
- Menu browsing with categories (burgers, sides, drinks)
- Product details with images and ratings
- Shopping cart functionality
- Order management
- Pet product catalog (toys, food, accessories)
- Product search and filtering
- Shopping cart integration
- User authentication (login/register)
- User profiles and order history
- Admin dashboard for product management
Frontend:
- React 18
- Bootstrap 5
- Axios for API calls
Backend:
- Node.js
- Express.js
- MongoDB with Mongoose
- JWT authentication
- Multer for file uploads
-
Clone the repository
git clone https://github.com/JoseArmas10/BurgerApp.git cd BurgerApp -
Install dependencies
# Frontend cd FrontEnd npm install # Backend cd ../BackEnd npm install
-
Environment configuration
- Copy
.env.exampleto.envin both FrontEnd and BackEnd directories - Configure your MongoDB connection string
- Set your JWT secret and other environment variables
- Copy
-
Start the application
# Option 1: Use the startup script (Windows) ./start-dev.bat # Option 2: Manual startup # Terminal 1 - Backend cd BackEnd npm run dev # Terminal 2 - Frontend cd FrontEnd npm start
-
Seed the database (optional)
cd BackEnd npm run seed
POST /api/auth/register- User registrationPOST /api/auth/login- User login
GET /api/products- Get all productsGET /api/products/:id- Get product by ID
GET /api/admin/products- Get all products (admin)POST /api/admin/products- Create new productPUT /api/admin/products/:id- Update productDELETE /api/admin/products/:id- Delete product
After running the seed script, you can login with:
Admin Account:
- Email:
admin@burgerapp.com - Password:
admin123456
User Account:
- Email:
john.doe@example.com - Password:
password123
cd FrontEnd
npm startAccess at: http://localhost:3000
cd BackEnd
npm run devAPI available at: http://localhost:5000
Visit: http://localhost:5000/health