The Movies application provides an easy way to search for movies and add them to your favorites list.
This application requires the following services:
- PostgreSQL as database provider
- Redis as cache provider
mkvirtualenv -p python3 movies
make dependencies
OMDB_API_KEY: you must ask for a developer API key to OMDB and set this variable with the given value.
DATABASE_URL: PostgreSQL connection address at postgresql://user:passwrod@host:port/database
REDIS_URL: Redis connection address at redis://host:port
Development mode requires two separate processes, one for the backend server in Flask and another for the frontend server, which is a Webpack development tool.
Starts backend server:
make run mode=development
Starts frontend server:
make run-front
Creates the JS bundle:
make build
Starts the application:
make run mode=production