Matheuslr / framework-challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Framework-API

Python Django Rest Framework and SQLite database

Technologies

  • Python 3.9
  • Django Rest Framework - Framework
  • SQLite - Develop Database
  • Docker - Project Structure
  • Docker-compose - Development Environment
  • Github Actions - CI

How to use?

Docker

  1. Clone this repository

  2. To copy .env.example to .env, run: make copy-envs

  3. Build docker image and run migrates: make build

  4. Run api: make run

  5. In your browser call: Swagger Localhost

  6. You can use this too: OpenAPI Localhost

Locally

  1. Clone this repository.
  2. Create a virtualenv
  3. To initialize and install dependencies, run: make init
  4. To apply the migrations, run: make migrate
  5. Run: make run-local
  6. In your browser call: Swagger Localhost
  7. You can use this too: OpenAPI Localhost

Testing

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>

About


Languages

Language:Python 90.2%Language:Makefile 7.6%Language:Dockerfile 1.2%Language:Shell 1.0%