Рет қаралды 15,007
In this video, we'll build a fully-functioning booking app in less than an hour.
We'll start by installing Rails, devise, active storage, and Avo Admin and proceed to configure our models and resources. We'll talk about filtering, actions, search, and dashboards.
Repo with the code:
github.com/avo-hq/avobookr
Another more full-fledged demo app:
avodemo.herokuapp.com/
Avo website:
avo.cool
0:00 - Intro
0:15 - Architecture
0:58 - Install Rails and Devise
1:45 - Install Avo
1:55 - Add the home controller
2:22 - Move Avo behind authentication
2:37 - Create the User resource
3:34 - Create location, room, and booking models
3:45 - Configure the Location resource
4:29 - Configure the Room resource
5:04 - Create a few rooms
5:30 - Add the grid view
6:40 - Configure the booking model
7:27 - Attach bookings to rooms
7:43 - Scope for future bookings
8:09 - Make field read-only
8:23 - Avo context object
8:30 - Add default value
8:54 - Configure search
9:54 - Add a dashboard
10:05 - Add metric cards
11:29 - Add a chartkick card
12:05 - Add a filter
12:58 - Add an action
14:50 - Outro