Repository for the second Portland Python Pyrates project
-
- run
make install
to install dependencies and jump into the virtual env - run
flask run
to boot the app locally. Make sure you are in the top level directory that has the file "app_run.py"
- run
-
- run
make install
to install dependencies and jump into the virtual env - run
make build
to build the docker image - run
make run
to run the docker containers locally and open on http://localhost:5000- run
make stop
to stop containers and prune after finished with changes
- run
- run
- Install Docker by following the instructions on their site
- run
make build
to build the docker image - run
make run
to run the docker containers locally and open on http://localhost:5000 - run
make stop
to stop containers and prune
- Install a new dep/library run
poetry add <your_dep>
orpoetry add <dep> --dev
- Resolve poetry.lock files. Use 1. to resolve on github or 2. to resolve locally (recommended)
- On github click on resolve conflicts and follow this guide
- Locally, pull the recent changes. Remove the lock file with the conflict
rm poetry.lock
. runmake install
to regenerate the lock file. Push changes and give yourself a high five!
- Note: make sure poetry is installed and first time setup is complete
- Take a look at the Makefile to see what shell commands are being executed
make install
- we use poetry to track python deps
- to install a new dep run
poetry add <your_dep>
orpoetry add <dep> --dev
- you can also modify the pyproject.toml directly, then run
poetry lock --no-update
- Install brew
- Install pyenv
brew install pyenv echo 'eval "$(pyenv init --path)"' >> ~/.zprofile echo 'eval "$(pyenv init -)"' >> ~/.zshrc
- Install zsh
brew install zsh
- Install Python 3.8.10
pyenv install 3.8.10
Help with various installation/setup issues:
- Testing Markdown - dillinger.io