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

https://github.com/davydovanton/hanami-workshop

Simple hanami app for workshop
https://github.com/davydovanton/hanami-workshop

Last synced: 9 months ago
JSON representation

Simple hanami app for workshop

Awesome Lists containing this project

README

          

1. set tests
```
be hanami db create
HANAMI_ENV=test be hanami db create
```

2. create simple show action
```
be hanami g action web 'links#show'
be hanami g model link
be hanami db migrate
HANAMI_ENV=test be hanami db migrate
```

3. create link model
check that all works correct
```
be hanami c
>> LinkRepository.new.create(url: 'google.com', key: '1234')
>> LinkRepository.new.find(1)
```

4. display link url to show action

generate
```
be hanami g action web 'links#new'
be hanami g action web 'links#create'
```

```
be hanami routes
```

```
be hanami g action web 'links#create
```

5. generate admin app

```
be hanami g app admin
be hanami g model account

be hanami db migrate
HANAMI_ENV=test be hanami db migrate
```

6. generate admin dashboard and links

```
be hanami g action admin 'dashboard#index'

be hanami g action admin 'links#new'
be hanami g action admin 'links#create'
```

7. add new columns to link
```
be hanami g migration add_accounts_and_clicks_to_links
```