Skip to content

A simple web application serving mapbox vector tile from a postgis backend

License

Notifications You must be signed in to change notification settings

DavidLacroix/postgis-mvt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgis-mvt

Presenting the stack Postgis/Flask/Mapboxgl to display geographic data using vector tiles.

Presentation is hosted here: https://davidlacroix.github.io/postgis-mvt/slide/index.html. The presentation won't be complete without the small infrastructure that comes with it. Follow the instructions to get the whole thing working properly.

Prerequisite

Getting started

Add your variables in the .env file:

  • postgres password
  • mapbox token

Then:

Starting services

sudo docker-compose up -d

Sudoing docker is not secure but is faster. To setup your docker properly read this

Postgres

# Connect to database
psql -h localhost -p 5555 -d postgres -U postgres
# Access container
sudo docker exec -it postgres-master /bin/bash

Webapp

http://localhost:8001
# Access container
sudo docker exec -it webapp-master /bin/bash

Slides

http://localhost:8000
# Access container
sudo docker exec -it slide-master /bin/bash

Processing insee data

sudo docker build -t data-master data-processing/
sudo docker run --link=postgres-master --network=global-network --env-file .env -it data-master

About

A simple web application serving mapbox vector tile from a postgis backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published