Running locally without Docker

  1. Initialize a new virtual environment
python -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install the requirements
pip3 install -r requirements.txt
# OR
pip install -r requirements.txt
  1. Now run the following command to setup a local dev server
flask --app server.py run

Running locally with Docker

  1. Install docker https://docs.docker.com/desktop/

  2. Install Python

  3. CD into the root directory and run to build the docker image

docker build -t flask-crypto .
  1. Now run the docker image by running the following command
docker run -d -p 5000:5000 flask-crypto