Phala slot crowdfunding backend
- Ruby 3.0.1
- SQLite / PostgreSQL
- NodeJS 14+
bundle install
cd vendor/polkadot_js_snippets && yarn install
cp config/database.yml.example config/database.yml
- Edit it
cp config/credentials.yml.example config/credentials.yml
- Run
rails secret
for a new secret seed then replace the default incredentials.yml
- Run
rails credentials:encrypt
- Run
- Edit
db/seed.rb
if need
- For development
rails db:reset
- For production
RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:reset
cd vendor/polkadot_js_snippets && yarn start --port 3001 --endpoint http://127.0.0.1:9933
http://127.0.0.1:9933
is RPC port of Kusama node with--pruning=archive
argument, it's highly recommend self host one locally.
RAILS_ENV=production script/fast_fetch_contribution_events.rb kusama
rails s -e production