Build a booking app in less than an hour with Rails and Avo Admin
HTML-код
- Опубликовано: 14 июн 2024
- 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
Adrian, this is a fantastic job. There is a considerable improvement over the old admin gems like Rails Admin and Active Admin.
Thank you for the kind words! Do you have something in mind that you’d like to build with Avo?
Excelente mister.....saludos de los andes peruanios
Thank you!
🙌
This video is really helpful to my research project , Thanks for the great work but I haven’t been able to build mine as i have lots of questions
What kind of questions?
Awesome stuff! Really awesome. That's why I love the Rails community. One error I faced is the photos are not displaying. Is that one of the pro features?
No, that definitely is not a pro feature.
I assume you're not seeing the photos in your own app. That might be from an incorrect setup of the active storage gem.
That's one place where I'd look. Check if the active storage gem installed properly.
@@avo_hq that was my second thought. Thanks for the reply. I'll dive into it and see what's missing. Stay Awesome guys, I came across Avo and ill definitely use it in all my projects and be a vocal advocate of the gem.
Much ❤️
I appreciate the help and thoughts.
That's pretty fast!!
🚀
This is amazing, the closest thing Ruby has compared to Django (Python framework)
Amazing 🙌 Are you a Rails developer?
This is a joke right?
Somehow, I needed to db:migrate to populate the resource file before being able to proceed with the other steps after installing avo. But everything else works fine.
Thanks for the feedback. I should redo these tutorials with the improved Avo 3.
Wow
🙌
association what make rails little confussing
They are actually pretty powerful after you get used to them.
😳 PЯӨMӨƧM
Hey. I don't know what is the meaning of this comment.