-
Pull changes from the dev branch into your current branch:
git pull origin dev
-
Make sure you're credentials are present in
app/server/config/config.json
-
Run
yarn
-
(optional) Create branch:
git branch *branch_name*
-
(optional) Checkout branch:
git checkout *branch*
-
Make changes...
-
Run
standard --fix
to lint your changes -
Run
yarn build
if you made any changes to theapp/src
folder -
Commit changes to your branch:
git add
git commit -m 'Insert ascii art here'
-
Push changes to your branch:
git push origin *branch_name*
-
Submit a pull request:
You should see a new button with the label “Compare & Pull Request”). Click on it. This will take the information from the Branch and will request a “Pull Request”
-
Mark the issue your request resolves (https://help.github.com/articles/closing-issues-via-commit-messages/)
-
Give it a label, assign your teammates to your pull request and wait for teammates to review.
-
Once your branch is merged, delete it:
git branch -d *branch_name*
-
Add the
{force:true}
option to the db.sync() method in/bin/www
to refresh your DB, run the server, kill the server, and replace it with{force:true}
or simply remove it. -
In
app/server
, run the following to seed your local db:
sequelize db:seed --seed users
sequelize db:seed --seed translations
sequelize db:seed --seed answers
sequelize db:seed --seed comments
sequelize db:seed --seed votes
- Run
DEBUG=express:* <insert_npm_script_key_here>
to run app in debug mode
-
Run
yarn test
to run tests -
Run
yarn cover
to view coverage