From 3c4f34610c084e091c57bd8bd40e58602e0a3482 Mon Sep 17 00:00:00 2001 From: Eli Gothill Date: Tue, 29 Nov 2016 14:19:46 +0100 Subject: [PATCH] Updated readme --- README.md | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index be3cea5..6d96b53 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,30 @@ several operations for querying data inside JSONB fields. See: https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/fields/#containment-and-key-operations -## Usage - - python manage.py transformap -i jobs/jobfile.json - -Admin interface: /admin -API URL: /places-api/ -New jobs should be created as .YAML files in jobs/ - ## Misc ETL business logic: places/management/commands REST API configuration: places/api.py +## Deployment + +For development, testing or demo purposes, use the Django development server: + +python manage.py runserver 0.0.0.0:9000 + +Navigate to http://localhost:9000 ... + +- /admin for the Admin area +- /places-api for the REST API interface +- /map-instance/MAP-INSTANCE-ID for the GEOJSON API + +For production use, deploy Django using WSGI. See: +https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ + +## Usage + +To run a job, create a YAML job file in /jobs, then: + python manage.py transformap -i jobs/jobfile.yaml +This fetch and save the partner's data to the database. \ No newline at end of file