Library App

Last PHP and SQL in-class exercise for Epicodus PHP, 3.3.2016

By Joseph Karasek and Mary Warrington

Description

This web app is designed to work for a library. The app can be used as a librarian or patron. Librarians are able to add books, add copies of that book to the libraries catalog, see where those copies are, update book info, and delete copies. Patrons can see their checkouts, checkout books, and return books.

One incomplete component is the handling of due-dates. Dates are currently hard coded to always be due 2-14-2016. This functionality maybe built out in the future.

Setup/Installation Requirements

Setup of databases

In terminal run the following commands to setup the database:

apachectl start
mysql.server start
mysql -uroot -proot
  1. Fork and clone this repository from gitHub.
  2. Navigate to the root directory of the project in which ever CLI shell you are using and run the command: composer install.
  3. Create a local server in the /web directory within the project folder using the command: php -S localhost:8000 (assuming you are using a mac).
  4. Open the directory http://localhost:8000 in any standard web browser.
  5. Open http://localhost:8080/phpmyadmin and import ../library.sql.zip.

Known Bugs

There are no known bugs at this time. This app is not fully developed at this point and some functionality is either missing or not clear.

Support and contact details

If you have any questions, concerns, or feedback, please contact the author through gitHub.

Technologies Used

This web application was created using the Silex micro-framework_, as well _Twig, a template engine for php, and mySQL.

License

MIT License.

Copyright (c) 2016 Joseph Karasek and Mary Warrington