This is an example for python api projects.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project.
- git
- make
- python 3.7
- pip
- virtualenv
- vscode
- docker
First of all you need to clone this repository:
git clone https://github.com/claick-oliveira/python-api-example.git
After clone access the folder and create your virtual env:
cd python-package-example
make venv
Now let's activate your virtual env:
make activate
To start to code you need to install the requirements and de dev requirements:
make requirements
make requirementsdev
To run the tests you need to execute:
make test
In this project we'll use PEP 8 as style guide.
To run the server you need to execute:
make server
To clean the files generated as coverage, builds, env you can use:
make clean
If you prefer to clear all, use:
make cleanfull
If you want to use docker, use:
docker build -t python_api:<version> .
docker run -it -p 5000:5000 python_api:<version>
Remember to change <version> to some version, example 0.1.0.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Claick Oliveira - Initial work - claick-oliveira
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details