Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.44 KB

File metadata and controls

67 lines (44 loc) · 1.44 KB

pyramid scheme

yoo is this real? unfortunately not actually a pyramid scheme. this is hack club's flagship referral program! specifically the third iteration (hence the v3). screengrab_noartifacts

ok so what do i start with

if you love containers and want to save time go here

otherwise,

bundle install
npm install
bin/rails db:create db:migrate db:seed

run

bin/dev

app runs on http://localhost:4444. ez! well you have to do some more stuff (see below) but

test

bin/rails test

env

copy .env.example to .env and configure as needed

required:

  • DATABASE_URL - postgres connection string

everything else is optional, but add as much as you can. a lot of things might not work otherwise! make a gh issue / PR if you would like me to fix smth with the dev setup!

so wth is qreader

qreader (this is the microservice that the reads qr codes for auto verification!):

cd qreader && PORT=4445 python main.py

and worker?

background jobs (these sync data in the bg):

bin/rails solid_queue:start

what about proxy?

proxy (url shortener service; you probably won't need it though!):

cd proxy && PORT=4446 python main.py

i am a docker pro pls dont waste my time

docker-compose up