A one stop shop monorepo
## (Re-)Building the containers
$ docker-compose build
## Deploying Containers
$ docker-compose up
## Deploying Containers (In Detach Mode)
$ docker-compose up -d
## Deploying Containers
$ docker-compose down
## Copy the SQL Dump
docker cp backend/sql/db.sql pencil-interview-task_db_1:/
## Enter the PostgreSQL Container
docker exec -it pencil-interview-task_db_1 bash
## Load the SQL Dump
psql postgres postgres < db.sql
Note: Ignore errors on "relation/constraints <name> already exists"
Head to http://localhost:8000/image/get", you should observe the following output.
[{"model": "models.image", "pk": "123", "fields": {"file": "static/images/123.jpg", "height": 456.0, "width": 810.0, "inserted_at": "2020-05-09T10:43:54.707Z"}}]
[React (Web) Application]
http://localhost:3000
[Django (API) Application]
http://localhost:8000
/image/get
: Returns information about images/image/new
: Used to create a new image in the database (under construction)
/box/get
: Returns information about bounding boxes/box/new
: Used to create a new bounding box in the database (under construction)