The online membership form for the UQ Computing Society.
This repo has been archived in favour of our newer UQCSPay platform, which is a fork of this repo. We’ve opted to keep this repo in its current state for any club that is interested in a simple signup system that they can self-host.
MAILCHIMP_USERNAME
MAILCHIMP_KEY
MAILCHIMP_LIST_ID
STRIPE_API_KEY
STRIPE_PUBLIC_KEY
STRIPE_PRICE_ID
MAILGUN_API_KEY
APP_SECRET_KEY
SQLALCHEMY_DATABASE_URI
API keys can be found in these places:
-
PostgreSQL is needed for the database backend, download from here.
-
Open a psql shell.
-
Create a database for signups if it does not exist:
CREATE DATABASE <uqcs_database_name>;
-
Load the UUID extension in this database:
\connect <uqcs_database_name> CREATE EXTENSION "uuid-ossp";
NOTE: The database to be used is specified in an environment variable as an SQLAlchemy database string. This should be set before running, e.g.
export SQLALCHEMY_DATABASE_URI=postgresql://postgres:password@localhost:5432/<uqcs_database_name>
- Run the signup sheet to create the tables
-
Windows machines will need the Microsoft Visual C++ Build Tools, which can be found here.
-
Using Python 3, run:
python setup.py install --user
-
Run the signup form with
python -m uqcs [host]
where [host] is the IP to bind to. For example,
python -m uqcs localhost
-
The form will be available at port 9001 of the given host.
Generate a bcrypt hash, then add it to the adminuser table with, for example:
INSERT INTO adminuser VALUES ('admin', 'Admin', '$2y$12$uIcgKDdPYiiEaYKpWqYFXul1aOJrE3CUnbI/XfxgUhPQUu6u0a/ZC');
This adds an admin user with usernamen "admin" and password "test".
Read through details for updating student program data here.
If you are committee and looking for how to move the database, or how to create a new database for a new year, you're looking in the wrong place. Look at infrastructure notes for the membership database.
If you are not committee, then hi. Banana.