GithubHelp home page GithubHelp logo

isabella232 / plasticwatch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from developmentseed/plasticwatch

0.0 0.0 0.0 1.88 MB

Home Page: https://plasticwatch.surge.sh

License: MIT License

JavaScript 94.15% SCSS 4.87% HTML 0.99%

plasticwatch's Introduction

Plasticwatch Website

PlasticWatch is a platform to crowdsource single-use plastic usage and locate restaurants that offer plastic-free choices.

Installation and Usage

The steps below will walk you through setting up a development environment.

Install Observe API

The website needs a running instance of Observe API. Please refer to the Config files section if the API instance has a different hostname than specified at config/defaults.js.

Prepare OSM Data

To prepare OSM data to be loaded as part PlasticWatch, run the script in yarn download --query <path-to-overpass-query> with queries available in directory utils/overpass-queries. The script takes an Overpass query and dumps GeoJSON FeatureCollection in /tmp/{query-id}.geojson. This can be directly uploaded to Observe API using the end point POST /osmobjects.

Install modules dependencies

Requirements:

Clone this repository locally and activate required Node.js version:

nvm install

Install Node.js dependencies:

yarn install

Config files

The config files can be found in app/assets/scripts/config. After installing the project, there will be an empty local.js that you can use to set the config. This file should not be committed.

Please refer to defaults.js for the available configuration properties.

Development

Start server with live code reload at http://localhost:9000:

yarn serve

Build to production

Generate a minified build to dist folder:

yarn build

Related repositories

License

MIT

plasticwatch's People

Contributors

geohacker avatar kamicut avatar lanesgood avatar vgeorge 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.