Skip to content

lotux/backbone-directory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backbone.js Employee Directory

"Backbone Directory" is a sample application built using Backbone.js and Twitter Bootstrap. The application is an Employee Directory that allows you to look for employees by name, view the details of an employee, and navigate up and down the Org Chart by clicking the employee’s manager or any of his/her direct reports.

Set Up:

  1. Create a MySQL database name "directory".

  2. Execute directory.sql to create and populate the "employee" table:

    mysql directory -uroot < directory.sql

Services:

The application is available with a PHP or Java services:

  • The PHP services are available in the api directory of this repository. The RESTful services are implemented in PHP using the Slim framework (also included in the api directory).
  • The Java back-end will be available soon.
  • The Perl back-end is in api-perl directory, which is using Mojolicious Web framework, to run perl backend you need to install Mojo framework first as following:

. On Unix/Linux just run :

sudo sh -c "curl -L cpanmin.us | perl - Mojolicious"

On Windows if you have Perl just open command line and enter:

cpan Mojolicious

. Install DBIx::Simple module using cpan or cpanm

cpan DBIx::Simple

. Cd to project directory . Run

morbo -v api-perl/backbone-directory.pl

. Open http://localhost:3000 in browser

About

Sample Application built with Backbone.js and Twitter Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.2%
  • JavaScript 6.2%
  • Perl 1.6%