A FastAPI movie discovery app with local search, likes/comments, and ML-based recommendations.
- Login and signup with JWT cookies
- Browse movies by category
- Search by title (local CSV + DB)
- Like and comment on movies
- Similar-movie recommendations from precomputed PKLs
- Python 3.10+
pip install -r requirements.txt
uvicorn app:app --reloadThen open:
http://localhost:8000/login
The app uses PKL files in model_data/:
movies.pklsimilarity.pkl
To regenerate using ml_model.py (uses movies + credits datasets):
python3 ml_model.pyDatasets expected in project root:
tmdb_5000_movies.csv(or.zip)tmdb_5000_credits.csv(or.zip)
app.py— FastAPI routesmovie_service.py— core business logictemplates/— HTML pagesstyles/— CSS stylesscripts/— frontend JSmodel_data/— ML PKLs