You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you see a step below that could be improved (or is outdated), please update the instructions. We rarely go through this process ourselves, so your fresh pair of eyes and your recent experience with it, makes you the best candidate to improve them for other users. Thank you!
TL;DR: we use Prettier and ESLint, we do like great commit messages and clean Git history.
Tests
After starting the API and REST services locally, you can run the tests using npm test or more specifically:
npm run test:server
To update:
GraphQL schema for eslint: run npm run graphql:update
Deployment
To deploy to staging or production, you need to be a core member of the Open Collective team.
(Optional) Configure Slack token
Setting a Slack token will post a message on #engineering with the changes you’re
about to deploy. It is not required, but you can activate it like this:
# Before first deployment, configure staging remote
git remote add staging https://git.heroku.com/oc-staging-rest-api.git
# Then deploy main with
npm run deploy:staging
# Before first deployment, configure production remote
git remote add production https://git.heroku.com/oc-prod-rest-api.git
# Then deploy main with
npm run deploy:production