This repo was created for Hack-a-TONx w/ DoraHacks and it contains exact copy of production punk city including contracts used and other important code parts. The only thing that is missing is github histoty and all credentials
Here is quick guide for developmet setup
- Ruby 2.7.6
- Node v16.15.0
- Postgresql
- Redis
bundle install
-- install ruby gemsyarn install
-- install node modulesbundle exec rails db:setup
-- create db
bundle exec rails s
-- to run web server onlybundle exec sidekiq
-- to run background jobs(not required)
- Install
ngrok
bundle exec rails s
ngrok http 3000
- Set telegram webhook for bot with the following command
curl -X POST https://api.telegram.org/bot{BOT_CREDENTIALS}/setWebhook\?url\=https://{NGROK_URL}/telegram