Cinema is the most beautiful fraud in the world. – Jean-Luc Godard
Review Movie inspired by TMDb with a movie dataset of over 27,000 movies, more than 20 genres.
- Python 3.8+ for API
- Node.js 14+ for Frontend
Here is a quick step-by-step minimal setup, to get the app up and running in your local workstation:
Move to API
cd apiCreate Python virtual enviroment:
python3 -m venv venvActivate virtual enviroment (this command can change based on OS):
source venv/bin/activateInstall backend dependencies using pip:
pip install -r requirements.txtCreate database tables:
python manage.py migrateCreate a super user:
python manage.py createsuperuserSeed the database with initial dump data:
python3 manage.py runscript load_dataIndex data for elasticsearch (Make sure you installed Elasticsearch in your machine)
python3 manage.py search_index --rebuildInstall dependencies using npm for Frontend:
cd frontend
npm installStart your local server:
npm startAfter finished config for API and Frontend. Now just go to http://localhost:3000 in your browser :)
Remember to create a .env file with all the environment variables you need for spining up the environment.
For building the image:
make docker-buildCreate database tables:
make docker-migrateCreate a super user:
make docker-createsuperuserYou will use this super user to login as administrator in your local application.
Seed the database with initial dump data:
make docker-loaddataIndex the data for Elasticsearch:
make docker-indexdataNow just go to http://localhost:3000 in your browser :)
Stop your environment:
make docker-down
