To read the Code of Conduct please go here
To read the License please go here
To read the Contributing guidelines please go here
To report a bug go here
To request for a feature please go here
This template aims to provide a boilerplate ready REST API Server using Flask.
The server is orchestrated through a Dockerfile.
Dependencies of the server are defined in Pipfile.
Mostly if you would be using docker, dependency management would be taken care of.
For pipeline and providing Continuous Integration along with Continuous Delievery, the pipeline is running in GitLab CI/CD. Following steps are present.
If the branch that is currently running is master then the last deploy stage also executes
If you are using Visual Studio Code you can directly launch the container by the following.
There is a .devcontainer/devcontainer.json file provided, use this to open the folder in a container.
docker demon is up.$ docker-compose build
$ docker-compose up --build --detach
$ docker-compose exec users pipenv run pytest
$ pipenv run black --config pyproject.toml app/**/*.py
$ docker-compose exec users pipenv run python manage.py init_db
$ docker-compose exec users pipenv run python manage.py seed_db
For dev environment the dependency management is done by pipenv, so prefix all commands with pipenv run
In case of any issues reach out to onlinejudge95
Content type
Image
Digest
Size
115.2 MB
Last updated
over 6 years ago
docker pull onlinejudge95/flask-rest-container