Python Django Rest Framework and SQLite database
- Python 3.9
- Django Rest Framework - Framework
- SQLite - Develop Database
- Docker - Project Structure
- Docker-compose - Development Environment
- Github Actions - CI
-
Clone this repository
-
To copy
.env.example
to.env
, run:make copy-envs
-
Build docker image and run migrates:
make build
-
Run api:
make run
-
In your browser call: Swagger Localhost
-
You can use this too: OpenAPI Localhost
- Clone this repository.
- Create a virtualenv
- To initialize and install dependencies, run:
make init
- To apply the migrations, run:
make migrate
- Run:
make run-local
- In your browser call: Swagger Localhost
- You can use this too: OpenAPI Localhost
To test, just run make test
.
To see the test coverage, run make test-coverage
actual coverage is 100%
To run a specifc test, run make test-matching k=<test-name>