Starter Kit for Asteroit Fullstack Web App with Ruby on Rails
This is only the blueprint of every Asteroit web app using Rails
- Make sure Ruby is already installed with version:
2.6.0
- Also, don't forget to install Rails on Gem :
$ gem install rails
- Copy configuration from
config/application.yml.example
toconfig/application.yml
:
$ cp config/application.yml.example config/application.yml
- Edit
config/application.yml
with your database configurations (Note: use PostgreSQL) :
DATABASE_USERNAME: awesomeusername
DATABASE_PASSWORD: secretpassword
- Run this commands :
$ bundle install
$ yarn install
$ rails db:setup
- Create secret key base :
$ rails secret
- Copy the result from above command to
config/application.yml
, for example :
SECRET_KEY_BASE: 3888762115ac94070fd94ff6704baa67d04b9b93dc1b82021c2b57eaa9bb2459b0cce59052d60363be7a1b348cb091350de80afc24ed3c831812822ee85ec0cb
- App is ready to use. Just run
rails server
and we're ready to go!