- Team Lead: Christopher Yeh ([email protected])
- Communication: Code the Change - Slack
Follow the instructions in the Wiki for how to setup your dev environment.
- Activate the virtual environment
- Windows (using Git Bash):
source env/Scripts/activate
- Windows (using Command Prompt):
env\Scripts\activate
- Mac OSX / Linux:
source env/bin/activate
- Run
heroku local
- I sometimes have issues running
heroku local
on my on Windows laptop. In this case, trypython run.py
. You may have to use Option 2 above to set up the configuration variables. Just be sure to never commit the API keys to our repo.
- Open up your web browswer and go to
http://localhost:5000
- Pull the latest changes into your local master branch
git checkout master
andgit pull
- Checkout your own branch if you have one, or create a new branch if you don't.
- Creating a new branch: e.g.
git branch chris-dev
- Switching branches: e.g.
git checkout chris-dev
- Merge in the latest changes from the
master
branch:git merge master
- Make changes to the app.
- Check that it works locally. See section "Running the app locally" above.
- Commit the changes with an appropriate description
- Select files from your working directory with
git add [FILENAME]
- Commit the files:
git commit -m [COMMIT DESCRIPTION]
- Push to your branch on GitHub:
git push origin
- Submit a pull request on GitHub to merge your changes into the
master
branch. - Once someone has reviewed your changes and merged them into master, pull the latest changes to master:
git checkout master
andgit pull
- Push to Heroku:
git push heroku master
- Check to make sure that it works on our live Heroku app: copyright-license.herokuapp.com. If there are any errors, check the logs:
heroku logs --tail
Check the Wiki page here
- Email Chris to get access to the Stripe Dashboard
- To have the Stripe authentication redirect to localhost, you can add a
redirect_uri
parameter to the URL increate.html
. For example, https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_6MnivEyxNIcx1cNuyoGHc7u1dRcNevgW&scope=read_write&redirect_uri=http://localhost:5000/oauth/callback - Note: this requires that the Stripe API be properly configured. In particular,
http://localhost:5000/oauth/callback
must be added as one of the Redirect URIs under the Stripe Account Settings.
Check the Wiki page here
- virtualenv seems to be not working?
- Have you renamed the virtualenv folder recently? If so, you have to re-setup the virtualenv directory.