Skip to content

# Paranuara is a class-m planet. Those types of planets can support human life, for that reason the president of the Checktoporov decides to send some people to colonise this new planet and reduce the number of people in their own country. After 10 years, the new president wants to know how the new colony is growing, and wants some information a…

License

Notifications You must be signed in to change notification settings

SPLAYER-HD/RestServiceDjango

Repository files navigation

Paranuara

=============

Steps to test API

1 Build docker (estimated time building image 8 minutes)

sudo docker-compose -f local.yml build

2 Load models on database

sudo docker-compose -f local.yml run --rm django python manage.py makemigrations
sudo docker-compose -f local.yml run --rm django python manage.py migrate

3 UP docker

sudo docker-compose -f local.yml up

4 Load data from json (if you are going to change the json files please keep the same format and let them in the same folder)

sudo docker-compose -f local.yml run --rm django python manage.py populate  companies.json company
sudo docker-compose -f local.yml run --rm django python manage.py populate  people.json person

5 Use API

If you want in the project root there is a Postman export with the End Points. (called: paranuara.postman_collection.json)

6 Validate unit test and API Test

sudo docker-compose -f local.yml run --rm django pytest

Additional Information

Celery Flower (the process to asociate citizens free to an empty company is released by celery)

Server: http://localhost:5555/

User: paranuara

Password: P4r4nu4r4

PostgreSql Credentials

POSTGRES_HOST=localhost

POSTGRES_PORT=5432

POSTGRES_DB=paranuara

POSTGRES_USER=sBLRWyyPsInwHftmHAWmYJURGWBGFpLs

POSTGRES_PASSWORD=tuXL3XSF8O7tsGrcGHoMos4tVNtL3tnrRshSCZokGnIfk4ArDyzaa297k2WgQPSL

TO DO

Only get friends service has tests. Load unit test and integration test to others services

Adapt json files to use fixtures instead of use BaseCommand

About

# Paranuara is a class-m planet. Those types of planets can support human life, for that reason the president of the Checktoporov decides to send some people to colonise this new planet and reduce the number of people in their own country. After 10 years, the new president wants to know how the new colony is growing, and wants some information a…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published