Backbone Directory is a simple Employee Directory application built with Backbone.js. I have added some basic authentication to this great project to show one way to this with backbone.js. I have added the front-end authentication code to the 'web' directory only.
The application allows you to look up 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.
- Install Vagrant
- Checkout the code
- In your terminal, navigate to the code, and type
vagrant up
Prerequisites: LAMP Server (Linux, Apache, MySQL, PHP)
-
Create a MySQL database name "directory".
-
Execute directory.sql to create and populate the "employee" table:
mysql directory -uroot < directory.sql