1.0.0 • Published 2 years ago

books-frontend v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

frontend for books project

setup

Install python on mac osx

https://www.freecodecamp.org/news/python-version-on-mac-update/

  1. Install homebrew (http://brew.sh) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install python environment brew install pyenv
  3. Install dedidacted python version pyenv install 3.10.6
  4. 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
  5. Set a Version of Python to Global Default pyenv global 3.10.6
  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