- If the command line starts with $, the command should run with user privileges
- If the command line starts with #, the command should run with root privileges
$ git clone https://github.com/DicksonChi/rss-reader-api.git
- Install docker and
- Install docker-compose
- Make sure you can run docker as non-sudo
$ docker-compose up
After you run, go to this link
http://127.0.0.1:8000/api/v1/docs/
$ docker exec -it rss_reader_web_1 poetry run pytest tests/python
$ docker exec -it rss_reader_web_1 poetry run black --skip-string-normalization --line-length=120 rss_reader
$ docker exec -it rss_reader_web_1 poetry run black --skip-string-normalization --line-length=120 tests
$ docker exec -it rss_reader_web_1 poetry run bash
$ cd rss_reader/
$ mypy .
- In the development environment, you can login in the admin console using
admin/admin
. - If you run into any issues with permissions while editing a file, run
sudo chown -R $(whoami) .
(because when files are generated inside the docker container, they are owned by root). - Notice that when running commands in the backend container, we are prepending
poetry run
to the command passed. This is so that we go inside the "poetry environment", where the python packages are installed.