This API template uses the following:
- docker
- docker-compose
- python 3
- pip 3
- pipenv
- uWSGI web server
- nginx web server
- flask web framework
- Install docker (including docker-compose), instructions here
- Clone the repository
- From project root, run
docker-compose up - Visit localhost:8080
To use the Makefile, replace the CONTAINER variable placeholder value in the makefile with the name of the container running the API. To find the name of the container running the API, use docker ps.
To use the Makefile to install new packages in the container, first make sure the makefile is setup as stated above. From the projects api/core directory, run make install-pkg PKG=[package_name].
To use the Makefile to run tests in the container, first make sure the makefile is setup as stated above. From the projects api/core directory, run make test.
- Incorporate pylint/config
- Handle install new packages on git pull