-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
3,146 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 📖 Documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- docs | ||
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory | ||
paths: | ||
- ".github/workflows/BuildMKDocsAndPublishToGithubPages.yml" | ||
- "docs/**.md" | ||
- "docs/**.py" | ||
- "docs/assets/**" | ||
# Allow manually running in the actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main from github | ||
uses: actions/checkout@v1 | ||
- name: Create Mkdocs Config 🚀 | ||
working-directory: ./docs | ||
run: ./create-mkdocs-html-config.sh | ||
- name: Deploy docs to github pages | ||
# This is where we get the material theme from | ||
uses: timlinux/mkdocs-deploy-gh-pages@master | ||
# Wrong | ||
#uses: timlinux/QGISAnimationWorkbench@main | ||
env: | ||
# Read this carefully: | ||
# https://github.com/marketplace/actions/deploy-mkdocs#building-with-github_token | ||
# The token is automatically generated by the GH Action | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BASE_DIRECTORY: docs | ||
CONFIG_FILE: docs/mkdocs.yml | ||
REQUIREMENTS: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,129 @@ | ||
# Kartoza Cloud Native GIS | ||
# Cloud Native GIS | ||
|
||
[![Tests](https://github.com/kartoza/CloudNativeGIS/workflows/Tests/badge.svg)](https://github.com/kartoza/CloudNativeGIS/actions/workflows/tests.yaml) | ||
[![📖 Documentation](https://github.com/kartoza/CloudNativeGIS/actions/workflows/BuildMKDocsAndPublishToGithubPages.yml/badge.svg)](https://kartoza.github.io/CloudNativeGIS/) | ||
|
||
## Overview | ||
|
||
Cloud Native GIS is a platform for handling layers and served on map. | ||
|
||
## Key Concepts | ||
|
||
**Layer** can be in vector and raster and being served as tile. | ||
|
||
**Style** is saved in database. Vector layer is in mapbox style. | ||
|
||
**Maputnik** is being used to change the style. | ||
|
||
## Quick installation | ||
|
||
### Production | ||
|
||
``` | ||
git submodule update | ||
git clone https://github.com/kartoza/CloudNativeGIS | ||
cp deployment/.template.env deployment/.env | ||
cp deployment/docker-compose.override.template deployment/docker-compose.template | ||
make up | ||
``` | ||
|
||
The web will be available at `http://127.0.0.1/` | ||
|
||
To stop containers: | ||
|
||
``` | ||
make kill | ||
``` | ||
|
||
To stop and delete containers: | ||
|
||
``` | ||
make down | ||
``` | ||
|
||
### Install as django library | ||
|
||
This application can be installed as django library. | ||
|
||
To install it, put `git+https://github.com/kartoza/CloudNativeGIS.git` to | ||
requirements.<br> | ||
Add `cloud_native_gis` to INSTALLED_APPS,<br> | ||
and add url `path('', include('cloud_native_gis.urls'))`. | ||
|
||
### Development | ||
|
||
``` | ||
git submodule update | ||
git clone https://github.com/kartoza/CloudNativeGIS | ||
cp deployment/.template.env deployment/.env | ||
cp deployment/docker-compose.override.template deployment/docker-compose.template | ||
``` | ||
|
||
After that, do | ||
|
||
- open new terminal | ||
- on folder root of project, do | ||
|
||
``` | ||
make serve | ||
``` | ||
|
||
Wait until it is done | ||
when there is sentence "webpack xxx compiled successfully in xxx ms".<br> | ||
After that, don't close the terminal. | ||
If it is accidentally closed, do `make serve` again | ||
|
||
Next step: | ||
|
||
- Open new terminal | ||
- Do commands below | ||
|
||
``` | ||
make up | ||
make dev | ||
``` | ||
|
||
Wait until it is on. | ||
|
||
The web can be accessed using `http://localhost:5000/` | ||
|
||
If the web is taking long time to load, restart cloud_native_gis_dev_1 container.<br> | ||
The sequence should be `make dev`, after that run or restart cloud_native_gis_dev_1. | ||
|
||
### Maputnik updates | ||
|
||
CloudNativeGIS using maputnik to edit style. | ||
We could update maputnik in the folder root/maputnik. | ||
Maputnik can be accessed in the django-admin and layers, and there is "editor" | ||
column that will be redirect to maputnik instance. | ||
By default, it is using maputnik production. | ||
|
||
To change and test maputnik: | ||
|
||
``` | ||
make serve-maputnik | ||
``` | ||
|
||
After it is done, there will be link to maputnik. | ||
Copy the link and paste in: | ||
go to deployment/.env | ||
change MAPUTNIK_URL to the copied link | ||
|
||
``` | ||
restart dev container | ||
``` | ||
|
||
After done, we need to update the maputnik production.<br> | ||
First, create commit of maputnik and push it to repo. | ||
Then | ||
|
||
``` | ||
make build-maputnik | ||
``` | ||
|
||
It will create files in the | ||
django_project/cloud_native_gis/templates/maputnik.html | ||
and also assets in the django_project/cloud_native_gis/static | ||
|
||
After that, test it by remove MAPUTNIK_URL and restart dev container. | ||
If satisfied, just create commit for the changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ REDIS_PASSWORD=redis_password | |
RABBITMQ_HOST=rabbitmq | ||
SENTRY_DSN= | ||
SECRET_KEY=SECRET_KEY | ||
MAPUTNIK_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use nix | ||
layout python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.idea | ||
.venv | ||
pdfs/ | ||
|
||
# mkdocs related | ||
mkdocs.yml | ||
templates/graphics.scss | ||
site/* | ||
|
||
#direnv for docs building | ||
.direnv | ||
# Autogenerated api docs | ||
src/developer/manual/*.md | ||
|
||
*.swp |
Oops, something went wrong.