Movies social sharing platform
NOTE: for local development 💻 the used database is the sqlite3
- python version:
3.8.6 - poetry version:
1.3.1
Run the following command:
make install-local- new
python venv:.env - install the dependencies using
poetry - install the
pre-commithooks - Create and run the
migrations - create sample fake
users/movies
Start the webserver 🐍
source .env/bin/activate && ./manage.py runservermake help make test For local docker 🐳 development use the following commands:
Install pre-commit hooks
make install-hooksCreate migrations, migrate and create sample data
make sample-movies-dockerStart containers
make dev-upStop containers
make dev-downmovierama
├── movies # Django models
└── accounts # Custom User model, authenticattion
└── api # Rest API
└── config # Django global settings
└── web_app # Web application
└── templates # HTML templates
└── tests # Pytest test cases
- swagger-docs :
/swagger/ - redoc:
/redoc/ - django-rest-framework :
/api/movies/v1/
For examples check: api-docs-examples
NOTE:
- Due to an open-bug to swagger-docs for the
apiit's not possible touploada movie cover. If you want to create amoviewith a movie-cover create a new one from thehomepage - the
APIendpoints aren't used from the templates, instead the web-app-endpoints are used