/Interlimetrica

Test Project

Primary LanguagePython

Test Backend

Technology Stack

Django framework 3.0.7

Django rest framework 3.11 - Build API Rest Ful

Postgres

sqlite3

Docker - PostGIS Image for development

Install

Create virtual enviroment

virtualenv -p python3 env

Clone the project and run the commands as show in the order inside the virtual enviroment.

Install Dependencies for GEODjango

sudo apt install gdal-bin libgdal-dev sudo apt install python3-gdal

Note: Download .env - enviroment's variables

Install Docker

Instructions for install docker

  1. Download PostGIS Image

    docker pull kartoza/postgis

  2. Run Image with docker docker run --name "postgis" -p 25432:5432 -d -t kartoza/postgis

  3. Config variables PostGis

    Note: Default postgresql user is 'docker' with password 'docker'.
    This variables add to .env file.
    • NAMEDBPG
    • USERDBPG
    • PASSWORDDBPG
    • PORT
  4. Install all the requirements

    pip install -r requirements/development.txt

  5. Migrate the migrations

    python manage.py migrate

  6. Create super user

    python manage.py createsuperuser

  7. Run server

    python manage.py runserver

API Documentation

API Documentation

References

Postgis