Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.44 KB

README.rst

File metadata and controls

77 lines (49 loc) · 1.44 KB

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='[email protected]', 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