GithubHelp home page GithubHelp logo

mjh316 / ua-2022-map Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openstreetmap-polska/ua-2022-map

0.0 0.0 0.0 1.3 MB

Map of reception points for refugees near Polish-Ukrainian border

Home Page: https://dopomoha.pl

License: MIT License

HTML 16.44% JavaScript 56.99% Python 17.67% CSS 8.15% Dockerfile 0.49% Makefile 0.26%

ua-2022-map's Introduction

ua-2022-map

Map of reception points for refugees near Polish-Ukrainian border

work in progress...

Development

We provide a docker-based dev environment; to spin up the system, run

make
make up
make down

For development and iterating on the code, get into a shell in the container and re-run your scripts from there with

make sh

From inside the shell you can then execute your scripts and iterate, e.g.

/app # ./download_data.py
/app # ./debug-app.py --host 0.0.0.0

If you prefer to run outside of docker instead, read on.

Steps:

  1. Create Python virtual env
  2. Install dependencies
  3. Generate site from templates
  4. Run local server

Repeat step 3 after changes.

Commands:

# clone the repo and enter the directory then:
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
./debug-app.py

Go to http://localhost:8000/en/ in the browser.

Build

python3 download_data.py
python3 -m http.server 8000 --directory build

Go to http://localhost:8000/en/ in the browser.

Generating sprites

Install NVM then:

nvm use 8
npm install -g @mapbox/spritezero-cli

Generate sprites by running:

nvm use 8
spritezero --ratio 4 ./static/style/sprite ./static/icons/

Deployment to AWS

  1. Code is getting deployed using CodePipeline,
  2. Static website is deployed to S3 bucket,
  3. Reception points are generated on EC2 instance on regular basis,
  4. Page is hosted behind CloudFront

ua-2022-map's People

Contributors

adamafro avatar ancymonek avatar arimeq avatar asteliks avatar daniel-j-h avatar dimitar5555 avatar gogogeo avatar jsanz avatar kasmar00 avatar migurski avatar mjh316 avatar mordechai23 avatar p4trykj avatar sabman avatar ttomasz avatar vierian avatar wzbartczak 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.