My plumbing does not work, I wonder if anyone else in the neighborhood has the same problem. Electricity goes out, I wonder how far should I go to find a coffee shop that is not affected by the blackout.
This is a simple app that helps the neighborhood to spread offline service status. You'll know where to go, service owners should know what and where to fix, we'll know how good services are maintained, everyone will be happy.
Only serving Indonesia at the moment.
- Provide a way to report a service status, chatbot, twitter bot.
- Provide a webpage that displays affected areas on the map.
- Service uptime metrics
- Docker compose
- golang-migrate
- Latest NodeJS
- Download required geojson here (~515MB)
- GDAL to import required GeoJSON to PostGIS
- psql cli
- Copy
.env.example
to.env
, modify variables if necessary - Run a localtunnel (
$ lt -p 4000
) then set API_URL on the .env file with the url given by localtunnel. - Run local database
$ docker-compose up -d
- Import GeoJSON to
places
table via GDAL's ogr2ogr cli$ ogr2ogr -f "PostgreSQL" PG:"dbname=laporin_db user=laporin password=rahasia host=localhost port=5432" "~/path/to/gadm36_IDN_4.json" -nln places
- Run migrations
$ migrate -path migrations -database "postgres://laporin:rahasia@localhost:5432/laporin_db?sslmode=disable" up
- Import cities database; login via psql then run
\copy cities (city,lat,lng,country,iso2,admin,capital,population,population_proper) FROM './migrations/id-cities.csv' CSV HEADER;
- Run the app
$ yarn dev
- GraphQL & Playground will be available at http://localhost:4000/graphql
Run yarn test