Skip to content

This was a backend challenge done in django + postgresql database

Notifications You must be signed in to change notification settings

pybalt/maper-back-chall

Repository files navigation

maper-back-chall

Backend Challenge jan-2024

Goal

This challenge is from MAPER, and is intended to evaluate my ability to interpret requirements, think logically, design software with judgement, and write clean and modular code.

Navigation

Title Link
API DOC Go to API DOC
CHALLENGE INSTRUCTIONS Go to CALLENGE INSTRUCTIONS
SYSTEM EXPLANATION Go to SYSTEM EXPLANATION
COMMANDS Go to COMMANDS

Requirements:

  • Docker Desktop

Instructions

  1. Startup project with
docker-compose build --no-cache && docker-compose up
  1. After initialization, check if migrations are made. If not, access the backend service and make them.
python manage.py makemigrations metrics sensors machine
python manage.py migrate
  1. After making migrations, load the data from .csv to database, with this custom command:
python manage.py load_data
  1. Load the database with the previous machine runtimes.
python manage.py populate_machine_runtimes
  1. After putting services up, navigate to
localhost:8000/swagger/

or

localhost:8000/redoc/

to see api docs.

Releases

No releases published

Packages

No packages published