This is the www.emfcamp.org web site, built with Flask & Postgres by the EMF web team.
If you want to get involved, the best way is to join us on IRC, on #emfcamp-web on chat.freenode.net.
Install Vagrant and VirtualBox.
vagrant up
vagrant ssh
make data
make
This is running all the necassary provisioning steps (see
provision.sh
). Port 5000 is forwarded, so you should be able to
view your development server on http://localhost:5000.
Once you've created an account, you can use make admin
to make your user an administrator.
If you want to clean out the database and start again then:
rm var/development.db
make update
make data
We have (currently) three payment systems: bank transfer, Stripe and GoCardless.
These are manually resolved via scripts and the admin panel.
This is the easiest method to "pay" for a ticket when you're developing. The details for a successful payment are:
- email: what ever you want
- card number: 4242 4242 4242 4242
- expiry: anything that's in the future
- cvc: anything
If you want to test specific modes please check their documentation
Unfortunately GoCardless don't offer a simple method of setting up a developer system. If you want to test this payment method you'll have to:
- Make a copy of 'config/development.cfg' and name it 'config/live.cfg'
- Set up your own merchant account (go to https://gocardless.com/merchants/new).
- Enable Sandbox mode (button at the top right)
- Enable developer mode: 'More...' (top left) > Developer (this should take you straight to the API Keys).
- Copy the following values from the API Keys to the appropriate environment variable in 'live.cfg':
- 'App Identifier' ->
GOCARDLESS_APP_ID
- 'App secrets' ->
GOCARDLESS_APP_SECRET
- 'Merchant access token' ->
GOCARDLESS_ACCESS_TOKEN
- 'Merchant id' ->
GOCARDLESS_MERCHANT_ID
- 'App Identifier' ->
- From Developer go to URI Settings (left hand menu block)
- Set the following:
- Redirect URI:
http://localhost:5000/pay/gocardless/
- Cancel URI:
http://localhost:5000/pay/gocardless/
- Redirect URI:
In theory you should now be able to use GoCardless to checkout. You should see the payments under payments (top left)
N.B. the version might be wrong for some of these, check against requirements.txt