/django-automotive-demands

Example of API REST with Django and Django REST Framework

Primary LanguagePython

Automotive parts demands

Objectives

CRUD of demands of automotive parts

Setting Up Environment

Development

Download and install docker-ce

Download and install docker-compose

https://docs.docker.com/compose/install/#install-compose

Test the endpoints

The endpoints can be tested with a Collection of Postman inside the project, search for: finxi-django.postman_collection.json

If you will test the endpoints, primary create an User,

after that, associate an User Detail to an User and finishing create a Demand

Composing up!

In your application directory, run:

docker-compose up -d

Composing down :(

To shut down the application, enter your application directory and run:

docker-compose down

Commands

Any command that you would like to execute of Django, please execute inside of docker container, example:

docker-compose exec <container_name> <command>

Existing users

There is a user already created, follow:

Username: root
Password: root