Repository for Lukim Gather Server
- Git
- Docker and Docker Compose
- Python 3.9+
- Django 3.2+
- Django 3.2+
- PostGIS 3.1+
- PostgreSQL 13+
git clone --branch develop https://github.com/undp-png/lukim-gather-server.git && cd lukim-gather-server
- Create external-service docker network
docker network create external-services
- If server is setup for local environment than soft link
docker/docker-compose.dev.yml
else linkdocker/docker-compose.prod.yml
for production- For development/testing
ln -s docker/docker-compose.dev.yml docker-compose.yml
- For staging/production
ln -s docker/docker-compose.prod.yml docker-compose.yml
- For development/testing
- Create
.env
file from.env.example
and set appropriate and required environmental variable as explained in.env.example
- If either postgres or redis is required than run command
ln -s docker/external_services.yml external-services.yml
anddocker-compose -f external-services.yml up -d
(Note:- Only postgres or redis can be run by using commanddocker-compose -f external-services.yml up -d <NAME>
where<NAME>
is replaced by eitherdb
orredis
respectively.)- If you have setup any other database instead of sqlite3 then server needs database to be created before starting server
- To create database run command
docker exec db psql -U postgres -c 'create database DATABASE_NAME;'.
. Replace DATABASE_NAME with actual database
- Run
docker-compose up -d
to start both server and celery worker ordocker-compose up -d server
to start server only. To do task in background celery should be running. - Execute
docker-compose exec server sh
and run command./manage.py createsuperuser
if super user is not created - Access server using url http://localhost:8000 and access admin using http://localhost:8000/admin
- Apply the Django fixtures defined in the
fixtures
folder:
docker-compose exec container_name poetry run ./manage.py loaddata survey/fixtures/category.json # Add protected area categories
The data collected at lukim gather app is synced to PNG Geoportal
Attribute name | Label | Type | Description |
---|---|---|---|
name | Name | string | Region name |
code | Code | string | Region code |
boundary | Boundary | string | Region boundary |
Attribute name | Label | Type | Description |
---|---|---|---|
title | Title | string | Category title |
description | Description | string | Category description |
Attribute name | Label | Type | Description |
---|---|---|---|
title | Title | string | Survey title |
description | Description | string | Survey description |
sentiment | Sentiments | string | sentiments |
attachment | Attachments | file | attachments |
location | Location | string | Survey co-ordinates |
boundary | Boundary | string | Survey boundary area |
status | Status | string | Survey answer status |
improvement | Improvement | string | Survey improvement status. |
is_public | Is Public? | boolean | Flat to determine wheter submitted survey is public or not. |
is_test | Is Test? | boolean | Flag to determine whether submitted survey is test or not. |
To translate Lukim Gather visit Hosted Weblate
Project is licensed under GPL v3.0