Recommendation system
Build project:
- Install docker and docker-compose.
Try next commands with sudo if you get permission errors.
docker-compose build.docker-compose up -d.- Server will run in port 8080.
This projects requires python 3.10. Python 3 can be installed with pyenv.
- Use pyenv-installer for installing pyenv
- See which python versions are available:
pyenv install --list - Install python 3. Example:
pyenv install 3.10.5(3.10.0 or higher) pyenv shell 3.10.5poetry shell
This project uses poetry. as a dependency manager.
poetry shell.poetry add {dependency_name}.
- Create a folder in
sitraved/apps/with the app name. - Run
python manage.py startapp {app_name} sitraved/apps/{folder_name}. - Add the app to you LOCAL_APPS in the
base.py. - Add the apps urls in
settings/urls.py.
git push heroku master- Run scripts:
heroku run python manage.py shell < scripts/myscript.py - Kill dyno:
heroku psheroku ps:stop run.4859