A token system for hackathons. Try it out at aha.youthacks.org.
DISCLAIMER:
Running Aha locally requires a lot of setup and configuiring multiple API keys, tokens, etc. There are also multiple other dependencies and pre-deployment commands that are required and are not here. Please contact me (at bottom of page) if you need any help, or want the exact instructions.
The demo website is known to frequently not work (due to the nest-deploy-aha.sh that Nest runs every 5 minutes not working when there is a new commit). If that happens, please let me know and I'll redeploy.
The following instructions below are not great but get you part of the way there (for Windows).
- Features
- Requirements
- Installation (Windows)
- Configuration
- Running the Application
- Deployment
- Troubleshooting
- License
- Participant and event management
- Token transactions
- Admin and manager roles
- Email notifications
- Ruby (see
.ruby-versionor Gemfile for version) - Rails (see Gemfile)
- PostgreSQL
- Node.js & Yarn (for asset compilation)
- Git
- Download and install Ruby from rubyinstaller.org.
- Install Rails:
gem install rails
- Download and install PostgreSQL from postgresql.org.
- During installation, ensure the command line tools are included.
- Add the PostgreSQL
bindirectory (e.g.,C:\Program Files\PostgreSQL\16\bin) to your PATH environment variable.
- You actually don't need this.
- Download and install Node.js from nodejs.org.
- Install Yarn:
npm install --global yarn
git clone https://github.com/yourusername/Youthacks-Token-System.git
cd Youthacks-Token-Systembundle install
yarn install- Create a PostgreSQL user and database, or update
config/database.ymlwith your credentials. - Run:
rails db:setup
- Copy
config/credentials.yml.encandconfig/master.keyif needed (for secrets). - Set up email server settings in
config/environments/production.rband/orconfig/environments/development.rb.
rails server- Visit http://localhost:3000 in your browser.
You can deploy this app using:
- Heroku: Push to a Heroku app with a PostgreSQL add-on.
- Docker: Use the provided
Dockerfile:docker build -t youthacks-token-system . docker run -e RAILS_ENV=production -p 3000:3000 youthacks-token-system - VPS/Cloud: Set up Ruby, Rails, PostgreSQL, and follow the installation steps above.
See LICENSE.
Add and issue on GitHub or contact us