Skip to content

bfirsh/Website

 
 

Repository files navigation

This is the www.emfcamp.org web site, built with Flask & Postgres by the EMF web team.

Build Status

Get Involved

If you want to get involved, the best way is to join us on IRC, on #emfcamp-web on chat.freenode.net.

Join with IRCCloud:

Getting Started

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

Payments for tickets

We have (currently) three payment systems: bank transfer, Stripe and GoCardless.

Bank Transfer

These are manually resolved via scripts and the admin panel.

Stripe

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

GoCardless

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:

  1. Make a copy of 'config/development.cfg' and name it 'config/live.cfg'
  2. Set up your own merchant account (go to https://gocardless.com/merchants/new).
  3. Enable Sandbox mode (button at the top right)
  4. Enable developer mode: 'More...' (top left) > Developer (this should take you straight to the API Keys).
  5. 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
  6. From Developer go to URI Settings (left hand menu block)
  7. Set the following:
    • Redirect URI: http://localhost:5000/pay/gocardless/
    • Cancel URI: http://localhost:5000/pay/gocardless/

In theory you should now be able to use GoCardless to checkout. You should see the payments under payments (top left)

Links to Documentation

N.B. the version might be wrong for some of these, check against requirements.txt

Flask

Templates

Forms

Database

About

The Electromagnetic Field web site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 55.8%
  • HTML 38.3%
  • CSS 3.1%
  • JavaScript 1.8%
  • Makefile 0.5%
  • Shell 0.4%
  • Mako 0.1%