Coder Social home page Coder Social logo

labs-maps-capital-planning's Introduction

Capital Planning Maps

An online resource for better, more collaborative planning through data and technology.

Development Setup

1. Install prerequisite tools

2. Install frontend and backend packages

> git clone [email protected]:NYCPlanning/labs-maps-capital-planning.git
> yarn

3. Set up environment file

  • Create the development.env file using variables stored on 1Password.

One-click startup

At the root of this project, run

netlify dev

4. CMS

Add new tabs to this by adding markdown files the content/maps folder. Look at the other markdown files for examples of the structure. If a folder is added, it will group those into a nested dropdown tab.

5. Other Services

This rebuild leverages Netlify functions (https://www.netlify.com/products/functions/) to rearrange some styling in the iframe that is controlled by Carto.

Those functions can be found here: https://github.com/NYCPlanning/labs-maps-capital-planning/tree/main/functions

The main function, "proxy", is used to run the Carto embed iframe through and fix up some styling.

The second function, "get-viz-json," is used to help with generating downloads by grabbing the protected visJSON data from Carto and generating the downloads.

labs-maps-capital-planning's People

Contributors

allthesignals avatar dhochbaum-dcp avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.