This project contains set of instructions to start working with flask micro-web framework (for reference mostly).
Tools
Run script from the root directory of the project and open http://localhost:4000 url in your WEB browser:
~ flask run
Please modify .flaskenv file to set your own application environment variables.
Endpoints:
/
- get home pagecurl -X GET http://0.0.0.0:4000/
/details
- get details pagecurl -X GET http://0.0.0.0:4000/details
/joke
- get random jokecurl -X GET http://0.0.0.0:4000/joke
/pokemon
- get pokemon list by colorcurl -X GET http://0.0.0.0:4000/pokemon curl -X POST http://0.0.0.0:4000/pokemon curl -X POST -d 'pokecolor=black' http://0.0.0.0:4000/pokemon
It's just a quick sample, please don't write front-end like this :)
Please execute command below to launch unittests:
~ pytest -v
Author – Volodymyr Yahello
Distributed under the MIT
license. See LICENSE for more information.
You can reach out me at:
- vyahello@gmail.com
- https://github.com/vyahello
- https://www.linkedin.com/in/volodymyr-yahello-821746127
- clone the repository
- configure Git for the first time after cloning with your
name
andemail
pip install -r requirements.txt
to install all project dependencies