planninglabs.nyc built with Gatsby.js
In the spirit of free software, everyone is encouraged to help improve this project. Here are some ways you can contribute.
- Comment on or clarify [issues](link to issues)
- Report [bugs](link to bugs)
- Suggest new features
- Write or edit documentation
- Write code (no patch is too small):
- Fix typos
- Add comments
- Clean up code
- Add new features Read more about contributing.
You will need the following things properly installed on your computer.
- Git
- Node.js (with NPM) version listed in .nvmrc
- gatsby-cli (to run Gatsby commands)
- Yarn
- Clone this repo
git clone git@github.com:NYCPlanning/labs-planninglabs-home.git
- Navigate to the project directory
cd labs-planninglabs-home
- Install dependencies
yarn
- Copy and rename .env-template, and fill in the correct Airtable API KEY (see 1password)
- Start your development server
netlify dev
- Go to
localhost:8000
in your web browser, make any code changes in the src directory and watch as your webpage automatically reloads to show your changes.
Optional
gatsby build
— Gatsby will perform an optimized production build for your site generating static HTML and per-route JavaScript code bundles.gatsby serve
— Gatsby starts a local HTML server for testing your built site.netlify dev
—
- Airtable (used to manage project content)
- Netlify Functions (Hosts private functions to pull data)
This project can be deployed on any static web server.
- Deploy via Dokku using
npm run deploy
You can find us on Twitter at @nycplanninglabs, or comment on issues and we'll follow up as soon as we can. If you'd like to send an email, use labs_dl@planning.nyc.gov