A full-stack web app for browsing and ordering movies across multiple streaming services.
- Backend: Node.js, Express
- Templating: Pug
- Database: MongoDB (via native driver)
- Auth: express-session
- Browse streaming services and their movies by genre
- Place movie orders with pricing, fees, and tax calculation
- User registration and login with session-based authentication
- Role-based access control (admin vs. non-admin)
- Admin panel to manage services, genres, and movies
- User directory with public/private profile support
- Per-user order history on profile page
- Live statistics computed from order history
- Node.js
- MongoDB installed and running
git clone https://github.com/yourusername/yourrepo.git
cd yourrepo
npm installStart the MongoDB daemon:
mongod --dbpath=C:\data\dbInitialize the database:
node initializeDatabase.jsThis creates the mwp database with services, users, and orders collections. Default users are seeded with their username as their password. The admin user has admin privileges.
node server.jsApp runs at http://localhost:3000
| Username | Password | Admin |
|---|---|---|
| admin | admin | ✅ |
| Jen | Jen | ❌ |
| MeiLing | MeiLing | ❌ |
| ... | ... | ❌ |
├── server.js
├── initializeDatabase.js
├── mwpDB.js
├── dbHelpers.js
├── sharedData.js
├── middleware/
│ └── auth.js
├── routes/
│ ├── servicesRouter.js
│ └── usersRouter.js
├── views/
│ ├── partials/
│ ├── homePage.pug
│ ├── orderForm.pug
│ ├── statistics.pug
│ ├── login.pug
│ ├── register.pug
│ ├── users.pug
│ ├── userProfile.pug
│ └── services.pug
├── public/
│ ├── scripts/
│ ├── styles/
│ └── images/
└── streamingServices/