-
Notifications
You must be signed in to change notification settings - Fork 7
Development Guide
Tomy Hsieh edited this page Nov 22, 2022
·
7 revisions
- Install specific python interpreter
pyenv install $(cat .python-version)
- Setup virtual environment
pyenv shell $(cat .python-version)
poetry env use $(pyenv which python)
- Install dependencies and generate lock file
poetry install
- Build image
docker compose --file docker-compose.dev.yml build
docker compose --file docker-compose.dev.yml up
docker compose --file docker-compose.dev.yml exec tubee flask db migrate -m 'MESSAGE'
poetry run flask test --coverage
docker compose --file docker-compose.dev.yml exec tubee flask deploy
Service | Endpoint |
---|---|
Postgres | postgres://tubee:tubee@localhost:5432/tubee |
RabbitMQ | ampq://guest@localhost:5672// |
RabbitMQ (Web) | http://localhost:15672 |
Flask | http://localhost:5000 |