/rails-booking-app-avo

Room Booking Applicaiton built with Ruby on Rails (Rails 7)

Primary LanguageRuby

DEVISE CONFIGURATION

Depending on your application's configuration some manual setup may be required:

  • Ensure you have defined default url options in your environments files. Here is an example of default_url_options appropriate for a development environment in config/environments/development.rb:
  config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

In production, :host should be set to the actual host of your application.

Required for all applications.

  • Ensure you have defined root_url to something in your config/routes.rb. For example:
  root to: "home#index"

Not required for API-only Applications

  • Ensure you have flash messages in app/views/layouts/application.html.erb For example:
  <p class="notice"><%= notice %></p>
  <p class="alert"><%= alert %></p>

Not required for API-only Applications

  • You can copy Devise views (for customization) to your app by running:
  rails g devise:views

For image uploader

rails active_storage:install

Generate new devise model

rails g devise MODEL

Avo App template

rails app:template LOCATION='https://avohq.io/app-template'

Avo Generate Resources

rails g model location name:string description:string
# location.rb modified with this attribute  has_one_attached :photo
rails db:migrate
rails g avo:resource location

image upload glib

for macOS

brew install vips
gem install ruby-vips

Avo generate Dashboard

rails g avo:dashboard Dashy

# generate booking count
rails g avo:card:metric BookingsCount
rails g avo:card:metric BookedHours  
rails g avo:card:chartkick BookingsOverTime

Screenshot

Screen Shot 2565-07-22 at 13 48 10

Screen Shot 2565-07-22 at 13 48 33

Screen Shot 2565-07-22 at 13 48 59

Screen Shot 2565-07-22 at 13 50 20