Skip to content

jozimarback/flask-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask Experiments

Simple flask api tutorial with REST methods

flask-api

Criando api flask

Integration tests

Running locally

  1. Create virtual environment
python -m venv venv
  1. Activate virtual environment
#linux
source venv/bin/activate
#windows
.\venv\Scripts\actvate
  1. Install packages
pip install -r requirements.txt
  1. Run app
python -m flask run --host=0.0.0.0

Running on Docker

  1. Create a build from present Dockerfile in this project
docker build --tag python-docker .

docker-image

  1. Run Docker container created on step 1
docker run -d -p 5000:5000 python-docker

Acessing on browser

After runing with docker ou manualy on your machine, open a browser and navigate to http://localhost:5000 🎈

About

Experimentos com flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published