Giter Club home page Giter Club logo

heartofthevalley's Introduction

Heart of the Valley

Our Valley of Heart's Delight (Santa Clara Valley, or the South Bay Area) has so many incredible murals and public art. This open source project visualizes and maps data about local public art and murals. We hope that this will help community members discover the beautiful murals and public art that make our communities vibrant. We also hope the map can help community members discover local artists and creatives in the South Bay.

This is an open source project.

It is maintained by Code for San José volunteers.

Questions about forking or using this project? Read our license.

Technologies:

  • Mapbox GL JS
  • Open Street Maps
  • JavaScript
  • Bootstrap
  • HTML
  • CSS

How to contribute

Want to contribute data about local public art/murals? Submit the data as an issue, or in our contact form

Contribute your research, development or design skills. Check out our list of issues on GitHub, and join our discussion on Slack: #public-art channel.

Development

This project uses Node.js and works with the latest Node.js LTS version 10.15.3. If you don't already have a preferred Node.JS IDE, it is recommended to use Visual Studio Code with this project.

Project setup:

Fork, then clone the project and run npm install to install the required packages listed in package.json.

Updating the scraped data:

The following steps are involved in updating the artwork data:

  1. Scrape the Artwork files from sanjoseca.gov - Run npm run scrapeArtworks. This will fetch data from sanjoseca.gov and populate the artwork-data/_scraped-artworks.json file with the fetched data.
  2. Merge the scraped artwork data with the artwork overrides - Run npm run mergeArtworkFiles. Some artwork files have incorrect addresses or addresses which cannot be looked up with Nomanatim. The artwork-data/artworks-overrides.json file exists as a way to reliably fix the data associated with the artwork so that Nominatim can find the location.
  3. Check for untitled art (optional) - Run npm run listUntitled. Some art is reported as "untitled" for the "title" field. If you know the title of the art, then add an override for it in the artworks-overrides.json and re-run step 2.
  4. Lookup addresses with OSM/Nominatim - Run npm run lookupAddresses. This will use the artwork address field to attempt to get the geolocation (latitude and longitude). The output of this command will indicate if there are failures to lookup the address. If you know the location, then add an override for it in the artworks-overrides.json and re-run step 2, then re-run step 4.
  5. Copy the artwork JSON data into art.js - Finally, run npm run moveArtToOutputDir to copy the contents of artwork-data/consolidated-artworks.json into js/art.js, prefixing the content with const art = . This is the final step and is needed before the changes can be visible in the web application.

Managing the live data:

POI Manager

The POI Manager exists to better assist with the creation and management of all artworks or points of interest. Because the primary source of data is the scraped artworks from the San Jose site, there exists some inconsistensies and each site needs to be vetted. The intent is to have all POIs in the artwork-data/managedPOIs.json file be complete with information before being shown by the heartOfTheValley application.

Running the POI Manager

  1. From the project directory, Open POI Manager. This opens up a local server using assets from the assetsPOIManager folder.
    npm run managePOIs
  2. Go to http://localhost:3000. Use the POI Manager.
  3. Once done, from the terminal window used to run the POI Manager, hit Ctrl + C.

Using the POI Manager

  1. On the index page, the left hand side will have all the scraped artworks that are not yet live. The right hand side will have all the artworks that have been vetted. Index Page
  2. Click on a scraped artwork to open up the Edit POI Page or click on "Create New POI" to open up the New POI Page.
  3. Once on the Edit/New POI page, include all details. You can view how the artwork will appear on the map area to the right. Click on the "Refresh Map & Popup" button to see any changes that have been made. New/Edit Page
  4. Click "Submit POI" to have this sent to the artwork-data/managedPOIs.json file to be consumed by the heartOfTheValley application.

Running the project locally

This project is completely static, so simply open index.html in Chrome or Firefox.

You can also run the project in a local web server on the project directory. One way to do this is to use the ws command, which can be installed using npm install -g local-web-server, then start the webserver by running ws --http2 in the project folder and going to https://127.0.0.1:8000 in your web browser. See the documentation for this program for more information.

Running unit tests

Unit tests use the testing framework Jest. To run the unit tests, run npm run test from the command line.

heartofthevalley's People

Contributors

aaronhans avatar aeevrubin avatar david-leonard-servicenow avatar dependabot[bot] avatar giftofgrub avatar jmlangston avatar jmstudiosjoe avatar kgudger avatar kyle-falconer avatar nohjlau avatar priyaganti avatar r-lee1 avatar ychoy avatar zpallin 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.