|
|
@ -10,20 +10,17 @@ gem install bundler |
|
|
|
bundle install |
|
|
|
``` |
|
|
|
|
|
|
|
### database.yml |
|
|
|
|
|
|
|
```yaml |
|
|
|
[...] |
|
|
|
development: |
|
|
|
<<: *default |
|
|
|
database: ruby-debug |
|
|
|
user: ruby-debug |
|
|
|
password: ruby-debug |
|
|
|
host: ct1.lxd |
|
|
|
[...] |
|
|
|
``` |
|
|
|
rails generate scaffold score name:string grade:integer |
|
|
|
rails db:migrate |
|
|
|
## DATABASE |
|
|
|
|
|
|
|
* # miaou, reuse dbs.lxd (or ct1.lxd) |
|
|
|
* echo "DATABASE_HOST=ct1.lxd" >> .env |
|
|
|
* # connect to miaou host |
|
|
|
* db-psql create easy-going-rails |
|
|
|
|
|
|
|
## RUN |
|
|
|
|
|
|
|
* rails db:migrate |
|
|
|
* ./bin/dev |
|
|
|
|
|
|
|
## TODO |
|
|
|
|
|
|
@ -69,9 +66,6 @@ rails db:migrate |
|
|
|
* [ ] remove /bin/setup |
|
|
|
* [ ] ask for main configuration (application_title, alpineJs) |
|
|
|
|
|
|
|
* [ ] ViewComponent |
|
|
|
* [ ] https://viewcomponent.org/ |
|
|
|
|
|
|
|
* [ ] Postgresql text search |
|
|
|
* [ ] Fuzzy search with trigrams |
|
|
|
|