Skip to content
/ maps Public

Site where you can build statistic interactive webmaps.

License

Notifications You must be signed in to change notification settings

mikekeda/maps

Repository files navigation

Maps

Codacy Badge Requirements Status

Site where you can build statistic interactive webmaps. Link to the site - https://maps.mkeda.me

Installation

# Install gdal
sudo apt-get install gdal-bin
# Install Redis
sudo apt install redis-server
# Install postgresql
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee  /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-12
# Configure database
sudo su - postgres
psql
CREATE USER maps_admin WITH PASSWORD 'home_pass';
CREATE DATABASE maps;
GRANT ALL PRIVILEGES ON DATABASE maps to maps_admin;
# Install packages
pip install -r requirements.txt
# Apply migrations
python manage.py migrate
# Create an admin user
python manage.py createsuperuser
# Import Polygons from geojson files
python manage.py import

Running

# Locally
python manage.py runserver

Upgrade python packages

# Remove versions from requirements.txt
# Upgrade python packages
pip install --upgrade --force-reinstall -r requirements.txt
# Update requirements.txt
pip freeze > requirements.txt

About

Site where you can build statistic interactive webmaps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published