Permalink
Browse files

(1) - Bare-bones working app (RapidDbic)

  • Loading branch information...
vanstyn committed Sep 12, 2013
1 parent 59216e7 commit 3fe7a8ffb88eb18d6cd09baa481b8f342d8066c0
Showing with 47 additions and 90 deletions.
  1. +40 −0 cmd_history.sh
  2. +7 −21 lib/RA/ChinookDemo.pm
  3. +0 −69 lib/RA/ChinookDemo/Controller/Root.pm
@@ -147,3 +147,43 @@ script/ra_chinookdemo_create.pl \
Commit 'Created DBIC schema/model "DB"'
#
Commit '01_prepared_app'
git tag 01_prepared_app
# Push to Github (First push, with tags):
git push -u --tags origin master
#
# --- END PART 1 ---
clear
# -- RapidApp "Chinook" Video Demo Series --
#
# (www.rapidapp.info/demos/chinook)
#
# Part 2. RapidDbic Basics
#
# * Progress so far, from Part 1:
# * Created 'RA::ChinookDemo' with catalyst.pl
# * Setup SQLite database 'chinook.db'
# (http://chinookdatabase.codeplex.com/)
# * Created Catalyst model 'DB' (DBIC::Schema)
# * Setup git (https://github.com/IntelliTree/RA-ChinookDemo)
# * 'Commit' shell alias - records cmd history with changes
# (cmd_history.sh)
#
# ----
#
git --no-pager log --oneline --reverse
git tag
#
# To jump straight to this point from scratch:
#
# git clone https://github.com/IntelliTree/RA-ChinookDemo
# cd RA-ChinookDemo
# git checkout 01_prepared_app
#
#
# Configure bare-bones RapidDbic:
vim lib/RA/ChinookDemo.pm
#
# Remove the auto-generated Root Controller:
# - Needed because local app controllers always take precidence
rm -f lib/RA/ChinookDemo/Controller/Root.pm
Commit '(1) - Bare-bones working app (RapidDbic)'
@@ -4,41 +4,27 @@ use namespace::autoclean;

use Catalyst::Runtime 5.80;

# Set flags and add plugins for the application.
#
# Note that ORDERING IS IMPORTANT here as plugins are initialized in order,
# therefore you almost certainly want to keep ConfigLoader at the head of the
# list if you're using it.
#
# -Debug: activates the debug mode for very useful log messages
# ConfigLoader: will load the configuration from a Config::General file in the
# application's home directory
# Static::Simple: will serve static files from the application's root
# directory
use RapidApp;

use Catalyst qw/
-Debug
ConfigLoader
Static::Simple
RapidApp::RapidDbic
/;

extends 'Catalyst';

our $VERSION = '0.01';

# Configure the application.
#
# Note that settings in ra_chinookdemo.conf (or other external
# configuration file that you set up manually) take precedence
# over this when using ConfigLoader. Thus configuration
# details given here can function as a default configuration,
# with an external configuration file acting as an override for
# local deployment.

__PACKAGE__->config(
name => 'RA::ChinookDemo',
# Disable deprecated behavior needed by old applications
disable_component_resolution_regex_fallback => 1,

'Plugin::RapidApp::RapidDbic' => {
# Only required option:
dbic_models => ['DB']
}, # ('Plugin::RapidApp::RapidDbic')
);

# Start the application

This file was deleted.

Oops, something went wrong.

0 comments on commit 3fe7a8f

Please sign in to comment.