Giter Site home page Giter Site logo

anuragsinghchaudhary / sharedstreets-road-closure-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sharedstreets/sharedstreets-road-closure-ui

0.0 1.0 0.0 113.12 MB

a lightweight application for municipalities to create non proprietary, standardized road closures data using the SharedStreets referencing system

Home Page: http://roadclosures-test.sharedstreets.io

HTML 0.65% TypeScript 97.22% CSS 2.12% JavaScript 0.01%

sharedstreets-road-closure-ui's Introduction

SharedStreets Constructions, Incidents, and Closures Ingestion UI

This is a lightweight web app for cities to generate road construction, incidents, and closures data, utilizing the SharedStreets Referencing System to provide a shared, non-proprietary way of describing this information for use in consumer applications.

Table of Contents

  • Running the application
  • Using the application
  • Output formats

Running the application locally/on your own computer

To run the application yourself on your local computer, you will need a Linux or Mac. Then, make sure you have node js and npm installed (see here for instructions), as well as yarn (see here for instructions).

Then, you have to clone this repository:

git clone https://github.com/sharedstreets/sharedstreets-road-closure-ui.git

Then, install the required dependencies:

cd sharedstreets-road-closure-ui/
yarn install 

You'll have to create a file named .env in the application's top-most/root directory. You can simply make a copy of the included file .env.example and populate the values appropriately:

REACT_APP_base_server_url=<base URL of the included server. if this is empty, default value is http://localhost>
REACT_APP_directory=full path to road closure files directory, ex: /Users/indraneel/road-closures/
REACT_APP_extent=[min X coordinate, min Y coordinate, max X coordinate, max Y coordinate]
REACT_APP_org_name=your organization's name. this will be appended to the 'directory' path, ex: /Users/indraneel/road-closures/organization-name>
REACT_APP_server_port=3001

You can use a website like bboxfinder to find your extent value. Note that the REACT_APP_extent specified is the only region within with you'll be able to mark streets as closed. Also make sure REACT_APP_extent is four values surrounded by square brackets (like this: [-70, 40, -70, 40]).

Next, you need to build the application by running this command:

yarn build:local

This will create a build of the web app that relies on the included server.ts. Note that this command (and start:local) sets the environment variable REACT_APP_LOCAL_SERVER to true.

And then finally, you can run the application:

yarn server

By default, the application will run at the following URL: http://localhost:3001 unless you've configured it otherwise.

Using the application

Animated walkthrough of selecting streets on the map

Animated walkthrough of filling out the form to describe the closure incident

Animated walkthrough of viewing final output

Output formats

The SharedStreets Road Closures app extends GeoJSON for all internal application data.

Data can be exported for consumption as the GeoJSON and/or the Closure Information Feed Specification (CIFS) format.

sharedstreets-road-closure-ui's People

Contributors

indraneel avatar

Watchers

James Cloos 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.