Changes to the site should:
- fix bugs for existing functions or features
- enhance the API or implementation of an existing function or feature
- be tested (we use
jest)
First of all, you'll need the following installed on your machine.
- Node.js
- Git
- Gatsby CLI:
npm install -g gatsby-cli - AWS Amplify CLI:
npm install -g @aws-amplify/cli
Set up AWS Amplify backend configurations (just once).
You'll need some AWS configurations in order for Amplify to work in your project. You'll also need a env.development file which holds keys to the AWS AppSync API and the Meetup.com API. These files are ignored in the check-in process so connect with me about it.
- Clone the repo
- Add the
env.developmentfile and the keys to the root of the project. - Run
npm install - Run
npm run setup. This builds the project and runs all of the unit tests. - Run
npm run start
These steps are for checking in client side code. When you're ready to submit your changes, create a custom branch and follow the normal git workflow.
git add .git commitorgit commit -m "...your commit message"- Push your changes to your custom branch with
git push origin <YOUR_BRANCH_NAME> - Create a pull request on GitHub
If you'd like to make changes to any of the back end AWS Amplify services, follow this guide
These resources can help in learning more about the infrastructure tools, services, resources and libraries used in this project.
Error: RootQueryType.allSitePage field type must be Output Type but got: SitePageConnection.
If you get this error message after cloning the repo, installing dependencies and starting the
project, there are likely multiple versions of graphql in the dependency tree.
The following steps might resolve the issue. Starting at the root level:
- Run
rm -rf publicandrm -rf node_modules - Run
rm -r .cache - Run
rm yarn.lockandrm package-lock.json - Run
yarn installornpm installto reinstall dependencies and generate new lock files. - Run
yarn startornpm start