Git Product home page Git Product logo

worldcrisismap's Introduction

World Crisis Map

Website displaying humanitarian crisis and news using OpenStreetMap and ReliefWeb.

setup server (ubuntu)

  • setup https / apache2
  • install postgresql and init
    • login to psql promt (sudo -u postgres psql)
    • set new password (\password)
    • create database (CREATE DATABASE crisismap;)
  • setup your .env file (have a look at the example .env_example file)
  • install Python 3 and NodeJS (sudo apt install python3-pip python3 nodejs)
  • setup database with script database_init_crisis_collector.py
  • install packages and updates by running ./update_server.sh
  • use something like pm2 to keep track of running the two scripts
  • use command grunt or grunt watch --force to keep be sure minified js is up to date

helpful tips

  • create postgres user in psql prompt with CREATE ROLE name WITH SUPERUSER LOGIN;
  • copy one postgres database to another server with pg_dump -C dbname | bzip2 | ssh remoteuser@remotehost "bunzip2 | psql dbname"
  • convert color of icon and keep transperancy: convert *.png -fill "#ffffff" -colorize 100
  • have a look at this guide
  • start pm2 process with watching: pm2 start file --watch
  • minify html, css and JS
  • nginx https
  • enable gzip
  • run fail2ban

worldcrisismap's People

Contributors

larsaars avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.