- Initialize a new virtual environment
python -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install the requirements
pip3 install -r requirements.txt
# OR
pip install -r requirements.txt
- Now run the following command to setup a local dev server
flask --app server.py run
-
Install docker https://docs.docker.com/desktop/
-
Install Python
-
CD into the root directory and run to build the docker image
docker build -t flask-crypto .
- Now run the docker image by running the following command
docker run -d -p 5000:5000 flask-crypto