2. Clone this repository

3. Start the app for development

Web Application Development with Mojolicious Boilerplate

Configure application menu

start by editing

conf/config.yaml

config values found in this file are accessible inside the application as a hash ref in

#$c being the controller instance
$c->app->{config}

there are 2 demo users in the config file: admin and regular. Those users are used for showing how to build different application menu for different user types. In your application, you'll 'probably' take your users from a DB or something

based on user types, we have 3 types of menu:

anonymous - when there is no one logged in

regular - when there is a 'normal' user logged in

admin - menu for the admins

Display error/notice/success messages automatically

simply push strings into the $self->session->{error_messages} array ref, in order to display error messages