A port over to another registration system in python
Find a file
2024-10-31 13:41:12 -04:00
contrib README 2022-12-06 15:23:58 -05:00
goathacks basic implementation of github issue #28 (modifying user details right from admin dashboard). Went with first name, last name, school, and phone number, since the user can change the shirt size and special accomodations on their own. 2024-10-31 13:41:12 -04:00
migrations Fix migration for event table 2023-12-01 13:31:17 -05:00
.gitignore countdown (hot) 2024-10-18 23:51:22 -04:00
.gitmodules Update static site 2023-12-14 21:14:50 -05:00
LICENSE re-add license 2022-12-07 08:58:17 -05:00
Makefile playing around with styling and items 2024-09-17 20:01:38 -04:00
README.md README 2022-12-06 15:23:58 -05:00
requirements.txt Input event modal and create some supporting infra 2024-06-02 12:30:40 -04:00
wsgi.py cli: Command-line user management 2022-12-06 17:59:49 -05:00

GoatHacks Registration Management

This is a rewrite of the original (commit 198f56f2c4) management system for Flask 2.1 and Postgres. The focus was on maintainability in the future and easy modifications for future years.

Setting up a development environment

The Makefile should have a bunch of useful recipes for you. Once you clone the repo for the first time, run make init_env, which will set up the virtual environment for development. If the dependencies ever change, you can run make upgrade_env to install the new packages.

To test your code, run make daemon, which will start a development server. It will automatically reload after your changes.

Setting up for production

You can use your choice of WSGI server. Instructions are provided below for uWSGI. Please ensure a current (3.x) version of Python and Pip.

  1. pip install uwsgi # or the equivalent for your distribution's package manager
  2. mkdir -p /etc/uwsgi/apps-available
  3. mkdir -p /var/log/uwsgi
  4. sudo chown -R nginx:nginx /var/log/uwsgi
  5. mkdir -p /var/app
  6. git clone https://github.com/WPI-ACM/Hack-WPI-Python /var/app/goathacks
  7. cd /var/app/goathacks && make init_env
  8. cp /var/app/goathacks/contrib/goathacks.ini /etc/uwsgi/apps-available/goathacks.ini
  9. cp /var/app/goathacks/contrib/goathacks.service /etc/systemd/system/goathacks.service
  10. cp /var/app/goathacks/goathacks/config.py.example /var/app/goathacks/goathacks/config.py
  11. $EDITOR /var/app/goathacks/goathacks/config.py