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

Комментарии • 25

  • @PedroSchmitt
    @PedroSchmitt 2 года назад +4

    Adrian, this is a fantastic job. There is a considerable improvement over the old admin gems like Rails Admin and Active Admin.

    • @avo_hq
      @avo_hq  2 года назад

      Thank you for the kind words! Do you have something in mind that you’d like to build with Avo?

  • @josbexerra8115
    @josbexerra8115 Год назад +1

    Excelente mister.....saludos de los andes peruanios

  • @TentaTolu
    @TentaTolu Год назад

    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

    • @avo_hq
      @avo_hq  Год назад

      What kind of questions?

  • @benkiarie149
    @benkiarie149 Год назад

    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?

    • @avo_hq
      @avo_hq  Год назад

      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.

    • @benkiarie149
      @benkiarie149 Год назад +1

      @@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.

    • @avo_hq
      @avo_hq  Год назад

      Much ❤️
      I appreciate the help and thoughts.

  • @withrejkapermana6087
    @withrejkapermana6087 Год назад +1

    That's pretty fast!!

  • @glaucocustodio7070
    @glaucocustodio7070 2 года назад +1

    This is amazing, the closest thing Ruby has compared to Django (Python framework)

    • @avo_hq
      @avo_hq  2 года назад +1

      Amazing 🙌 Are you a Rails developer?

    • @AlainPilon
      @AlainPilon Год назад +2

      This is a joke right?

  • @salemcodes
    @salemcodes 8 месяцев назад

    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.

    • @avo_hq
      @avo_hq  6 месяцев назад

      Thanks for the feedback. I should redo these tutorials with the improved Avo 3.

  • @cocoarecords
    @cocoarecords Год назад +1

    Wow

  • @blackcoder2510
    @blackcoder2510 9 месяцев назад

    association what make rails little confussing

    • @avo_hq
      @avo_hq  6 месяцев назад

      They are actually pretty powerful after you get used to them.

  • @omari3655
    @omari3655 2 года назад

    😳 PЯӨMӨƧM

    • @avo_hq
      @avo_hq  2 года назад

      Hey. I don't know what is the meaning of this comment.