- Download & Install Docker Desktop Docker Desktop
- Run Docker Desktop
- Clone or Download Repository CSE-DB-Practice
- Open repo in IDE
CSE-DB-Practice - Make shure ports 3307, 8001, 3001 are not preoccupied
- Build Docker Image & Run Images in Containers
docker-compose up - Happy coding!
- GitHub
- Docker
- Database: MySQL
/mysql - API: FastAPI Python
/api - Frontend: React JS
/frontend
git clone https://github.com/ttytu/CSE-DB-Practice.gitcd CSE-DB-Practice
docker-compose build
docker-compose up - DB server
http://localhost:3307 - API server
http://localhost:8001 - Frontend server
http://localhost:3001
/mysql
Access database container from MySQL Workbench
- Schema name: fastapi_app
- Host port:
3307 - Initial root password: P4ssw0rd
- Tables:
- movie
- movieId, videoReleaseDate, releaseDate, movieTitle, year, backdrop_path, poster_path
- movie_genres
- mgenreId, movieId, genre
- ratings
- ratingsId, userId, movieId, ratingScore, timestamp
- user
- userId, age, gender, occupation, ZIPCODE
- movie
/api
Access API server container from local browser
- API docs: http://localhost:8001/v1/docs
- Edit code in
/CSE3207-Database/api/- Database connector:
/api/database/connector.py
- movieLens controllers:
/api/movieLens/controllers.py
- movieLens routers:
/api/movieLens/routers.py
- FastAPI main app:
/api/main.py
- Database connector:
- FastAPI documentation: https://fastapi.tiangolo.com/
/frontend
Access web page from local browser
- http://localhost:3001/
- Provided Pages
- Home, MovieDetails, MovieSearch, UserDetails
- Provided Components
- Nav, Footer, Banner, MovieCard, MovieList, etc
- React app with Tailwind CSS


