Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiskolabs/activeadmin-demo


https://github.com/kiskolabs/activeadmin-demo

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# README

Full abstract and more details: https://gist.github.com/amkisko/c704c1a6462d573dfa4820ae07d807a6

```bash
$ rails new . -n ActiveAdminDemo -c tailwind -a propshaft --skip-test --skip-system-test

$ rails tailwindcss:install
$ rails generate active_admin:assets
$ mv tailwind-active_admin.config.js config
$ cat config/tailwind-active_admin.config.js | sed 's/require(`@activeadmin\/activeadmin\/plugin`)/require(`${activeAdminPath}\/plugin.js`)/g' > config/tailwind-active_admin.config.js
$ bundle binstub tailwindcss-rails
$ rails generate active_admin:views
$ echo "active_admin: bin/rails active_admin:watch" > Procfile.dev

$ vim lib/tasks/active_admin.rake
$ vim config/initializers/active_admin.rb

$ rails g model button clicked:boolean clicked_at:timestamp
$ rails generate active_admin:resource Button

$ rails db:create db:migrate db:seed
$ bin/dev
```