Skip to content

Instantly share code, notes, and snippets.

@slugbyte
Last active July 10, 2017 15:48
Show Gist options
  • Save slugbyte/e6c41939464ad0003860cdb872ef8a97 to your computer and use it in GitHub Desktop.
Save slugbyte/e6c41939464ad0003860cdb872ef8a97 to your computer and use it in GitHub Desktop.

401 backend project week

before you start building out your API

  • create a repo
  • add a package.js, .gitiginroe, .travis.yml, test/dummy-test.js
  • setup a github repo and add team mates as colaborators
  • enable travis
  • In the repo settings, make the master branch a protected branch
  • Require pull request reviews before merging
  • Require review from Code Owners
  • Require status checks to pass before merging
  • Require branches to be up to date before merging
  • Include administrators
  • Setup Heroku with automated deploys

How to add a feature

  • checkout master
  • pull the lastet updates
  • checkout a new branch NAMED AFTER YOUR FETURE
  • add your changes, and commit as often as possible
  • open a pull request
  • have a team mate do a review of the PR
  • If all checks pass and they have done the review THEY can merge it

Each time a branch is merged

DELAYING THIS STEP OR DISREGARDING THIS STEP WILL MAKE YOUR CODE UNMERGABLE.

  • everyone immediatly commit thier current changes
  • everyone run git pull origin master in their current branch
  • everyone handles their own merge conflicts immediatly
  • everyone continues working on their feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment