README
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
Development Setup
Here is quick guide for developmet setup
Development Prerequisites
- Ruby 2.7.6
- Node v16.15.0
- Postgresql
- Redis
Setup
bundle install
-- install ruby gemsyarn install
-- install node modulesbundle exec rails db:setup
-- create db
Run
bundle exec rails s
-- to run web server onlybundle exec sidekiq
-- to run background jobs(not required)
Test with telegram
- 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