Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🎬 Weekend Movie Planner

A full-stack web app for browsing and ordering movies across multiple streaming services.

Tech Stack

  • Backend: Node.js, Express
  • Templating: Pug
  • Database: MongoDB (via native driver)
  • Auth: express-session

Features

  • 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

Getting Started

Prerequisites

  • Node.js
  • MongoDB installed and running

Installation

git clone https://github.com/yourusername/yourrepo.git
cd yourrepo
npm install

Database Setup

Start the MongoDB daemon:

mongod --dbpath=C:\data\db

Initialize the database:

node initializeDatabase.js

This 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.

Running the App

node server.js

App runs at http://localhost:3000

Default Users

Username Password Admin
admin admin ✅
Jen Jen ❌
MeiLing MeiLing ❌
... ... ❌

Project Structure

├── 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/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages