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 api
Create Python virtual enviroment:
python3 -m venv venv
Activate virtual enviroment (this command can change based on OS):
source venv/bin/activate
Install backend dependencies using pip:
pip install -r requirements.txt
Create database tables:
python manage.py migrate
Create a super user:
python manage.py createsuperuser
Seed the database with initial dump data:
python3 manage.py runscript load_data
Index data for elasticsearch (Make sure you installed Elasticsearch in your machine)
python3 manage.py search_index --rebuild
Install dependencies using npm for Frontend:
cd frontend
npm install
Start your local server:
npm start
After 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-build
Create database tables:
make docker-migrate
Create a super user:
make docker-createsuperuser
You will use this super user to login as administrator in your local application.
Seed the database with initial dump data:
make docker-loaddata
Index the data for Elasticsearch:
make docker-indexdata
Now just go to http://localhost:3000 in your browser :)
Stop your environment:
make docker-down