Skip to content

imobanco/drf-api-domain

Repository files navigation

drf-api-domain

demostração da arquitetura sugerida no styleguide django-api-domains

Install

Docker + docker-compose

Install docker and docker-compose from each documentation

Setting up

On the project folder run the following commands:

make config.env
make build

to copy the file .env.example to .env and build docker containers

Running the project

Run the command

make up

This command will start 2 services on your machine:

  • Django server on local server
  • PostgreSQL service on port 5432

Tests

On the project folder

make test

make coverage

make black

Administration

Django Admin Site is enabled for the project on local server admin.

make populate.superuser

may be used to create the superuser

User(email='superuser@admin.com', password='@Admin123')

Using the API

Access the local server and browse the api.

You may interact with the API via browser or via http request softwares such as insomnia

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published