Django rest framework 3.11 - Build API Rest Ful
Docker - PostGIS Image for development
Create virtual enviroment
virtualenv -p python3 env
Clone the project and run the commands as show in the order inside the virtual enviroment.
sudo apt install gdal-bin libgdal-dev
sudo apt install python3-gdal
Instructions for install docker
-
docker pull kartoza/postgis
-
Run Image with docker
docker run --name "postgis" -p 25432:5432 -d -t kartoza/postgis
-
Config variables PostGis
- NAMEDBPG
- USERDBPG
- PASSWORDDBPG
- PORT
-
Install all the requirements
pip install -r requirements/development.txt
-
Migrate the migrations
python manage.py migrate
-
Create super user
python manage.py createsuperuser
-
Run server
python manage.py runserver