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-commit
hooks - Create and run the
migrations
- create sample fake
users/movies
Start the webserver 🐍
source .env/bin/activate && ./manage.py runserver
make help
make test
For local docker 🐳 development use the following commands:
Install pre-commit hooks
make install-hooks
Create migrations, migrate and create sample data
make sample-movies-docker
Start containers
make dev-up
Stop containers
make dev-down
movierama
├── 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
api
it's not possible toupload
a movie cover. If you want to create amovie
with a movie-cover create a new one from thehomepage
- the
API
endpoints aren't used from the templates, instead the web-app-endpoints are used