1.0.0 • Published 2 years ago
books-frontend v1.0.0
frontend for books project
setup
Install python on mac osx
https://www.freecodecamp.org/news/python-version-on-mac-update/
- Install homebrew (http://brew.sh)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install python environment
brew install pyenv
- Install dedidacted python version
pyenv install 3.10.6
- Set Up Your MacOS PATH for pyenv ZSH
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init --path)"\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
- Set a Version of Python to Global Default
pyenv global 3.10.6
- Show Versions
pyenv versions
Install python on windows
install required packages
pip3 install -r requirements.txt
generate database
Start frontend
Run with local python environment
Im Projektordner in der Pythonkonsole flask run
eingeben.
Using docker
Im Projektordner in der Pythonkonsole per docker
ein docker image erzeugen docker build -t books-frontend .
Danach wird in docker desktop unter "images" "currency" angezeigt, dort auf run klicken (optional: port 5000 auswählen) nun läuft flask in docker
1.0.0
2 years ago