This repository contains the Right To Counsel (RTC) NYC Coalition's Worst Evictors Website.
It is based on a Gatsby starter. Almost all of the content is pulled from Contentful.
- Set Contentful API keys.
Copy .env.sample
to .env
and set your Contentful API variables. To grab these variables, make an account and create a content space with Contentful.
- Install dependencies.
Run yarn
to install all dependencies.
- Start developing.
Run yarn develop
to start developing.
Your site is now running at http://localhost:8000
!
Note: You'll also see a second link: http://localhost:8000___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
- Edit some files!
Open the the repository's root directory in your code editor of choice and edit src/pages/index.tsx
. Save your changes and the browser will update in real time!
You can also run the site using Docker. Create an .env
file as per the quick start instructions, but then run:
docker-compose run app yarn --frozen-lockfile
docker-compose up
Then visit http://localhost:8000
!
We deploy our version of the site using Netlify, which links directly to this repo and deploys on commits to the master branch. To use Netlify in deploying your own version, follow this step-by-step guide.
Read about JustFix's code of conduct as an organization on our Mission page.