An example rest api project with Flask
SETUP INSTRUCTIONS
__________________
- Create a new project in github and clone it
- Create virtual environment inside project folder:
- Open the terminal
- In the root project directory type python3 -m venv name-of-your-env (default is usually "venv")
- Activate the virtual environment by typing source venv/bin/activate
- Type pip install flask and press enter
- Create requirements file - type "pip freeze > requirements.txt"
- Create a docker-compose.yml file and include the necessary instructions
- In the terminal, type docker-compose up -d
- To terminate the docker containers:
- Type docker ps to get the list of containers
- Type docker stop -t 60