Demoday project by 賣紅蛋小隊 __
$ bundle install
$ rails secret
then copy the key to config/secret.yml
development:
secret_key_base: <Generated key>
create config/database.yml
default: &default
adapter: postgresql
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
<<: *default
database: acwarcraft_development
test:
<<: *default
database: acwarcraft_test
production:
<<: *default
database: acwarcraft_production
Install PostgreSQL on your local machine, and create a database "acwarcraft_development"
seed file generate a admin role
$ rails db:seed
fake user
$ rails dev:fake_user