The purpose of this template is to accomodate monolith project including its dashboard.
The boilerplate contains :
- ActiveAdmin
- ActiveMaterial
- ActiveMaterialIcon
- Rails 6.0.0.rc1 or newer
Assume we want to create a project named Hello
- Create a new rails project
rails new hello -m https://raw.githubusercontent.com/extrainteger/exi-monilith/master/template.rb - While installing in progress you will be asked some question
Which database would you like to use?
1 For default or Sqlite
2 For PostgreSql
3 For MySql
Do you want to use Capistrano?
Answer y if you wish to use Capistrano
- Go to project
cd hello - Edit credential
rails credentials:edit --environment development. Modify the content from credentials/example.yml - Edit credential
rails credentials:edit --environment test. Modify the content from credentials/example.yml - Prepare database
rails db:create && rails db:migrate && rails seed:migrate
Create default admin user from your rails c :
AdminUser.create email: "helmy@extrainteger.com", password: "yunan123", password_confirmation: "yunan123"- Start server
rails s - Go to http://dashboard.lvh.me:3000/admin to check Dashboard