This site is an open source Gatsby site for the NewHaven.io community! We're a tech Meetup and Slack community in New Haven interested in bringing people together around and through technology.
To get involved in this project, first join our Slack. There is a self-serve invite link on the website.
# Install dependencies
yarn install
# To develop
# This will run the Gatsby static site at localhost:8000 and Netlify cloud
# functions at localhost:9000. The Gatsby site is configured to proxy calls to
# cloud functions automatically to avoid CORS issues.
yarn develop
# To build
yarn build
# To test SSR (for Lighthouse etc.)
yarn ssr
# To format JS (precommit)
yarn format
All top-level routable pages should live in src/pages/*
. Pages should be accessible from both the top nav and the footer.
Copy for pages should live in content/pages/index.yaml
for maintainability and ease of auditing. Use your best judgment regarding what qualifies as copy (as opposed to minor labels, etc.). This is queried through GraphQL.
Assets for pages should also live in content/images
and also be accessed via GraphQL.