Awesome
Lotus
The Lotus gem wasn't released yet, but all the core frameworks are out at the version 0.1.0. This is a sample application that uses all available Lotus components. It is based on @jodosha's example.
The Application
The application is a system for booking conference rooms in a coworking space. Users can pick a free slot to book a room, and an administrator can manage rooms and see reports on how much a team has used a room.
You can see this application running here.
Status
- Index/Create Rooms
- Show validation errors on create
- Updating rooms
- Deleting rooms
- Implement Teams CRUD
- Implement authorization for teams
- Implement authorization for admins
- Allow teams to book a room at a specific time
- Allow admins to see room usage by teams
Setup
- Clone repo
- Run
bundle install
- Copy
.env.example
into.env
and edit it to your liking (useSecureRandom.hex(64)
to generate a key forRACK_SECRET
) - Create the database (e.g.
createdb lotus_model_test
, but you should be able to use any RDBMS) - Migrate the database
bundle exec rake migrate
- Start the server with
bundle exec rake server
(it will start a server with Shotgun)