A Netflix-like streaming service application built for the Webprogramming module at the HWR university of Berlin. This project demonstrates a full-stack web application with a Next.js 16 frontend and an Express + SQLite backend, communicating via REST API architecture.
Ensure you have the following installed on your system:
- Node.js (v18 or higher)
- npm (v9 or higher)
- Clone and navigate to the project directory:
git clone https://github.com/verbrannter-toast/Webprogramming.git cd Webprogramming
- Build and run the container
make docker.build make docker.run
- In your browser, navigate to: http://localhost:3000/
- Clean up after using the Container
make docker.stop make docker.delete_container make docker.delete_image
Note: If you cannot use Make, you can just copypaste the Docker commands from Makefile into your terminal
Install dependencies:
cd Webprogramming/streaming-service
npm installnpm run devThis will:
- Launch the Next.js frontend on
http://localhost:3000 - Launch the Express backend on
http://localhost:5000 - Automatically initialize the SQLite database (
database.db) - Seed the database with test user and movie data on first run
After starting the application, you can log in with the auto-created test user:
- Email:
test@test.com - Password:
password123
The backend provides the following REST API endpoints:
-
Authentication
POST /login- User loginPOST /register- User registration
-
Movies
GET /movies- Get all movies
-
Watchlist
GET /watchlist/:userId- Get user's watchlistPOST /watchlist/toggle- Add/remove movie from watchlist
-
Account
POST /account/update-password- Update user passwordGET /account/avatar/:userId- Get user avatarPOST /account/avatar- Upload user avatarDELETE /account/:userId- Delete user account