This is an app for a library. The admin should be able to add a list of the authors, and for each author, add books written by the author.
- As a library admin, I want to be able to add a book to circulation.
- Every book should have a title and at least one author.
- I want to be able to add additional authors to any given book already in the system
- I want to be able to search for books by author
- I want to be able to search for books by title
- I want to be able to view all books
- I want to be able to view all authors
- If a book already exists in circulation, when I add another book with the same author and title, I want to note that this book now has one additional copy in circulation.
- I want to be able to add a patron to the system
- I want to be able to check out a copy of any book to a patron, and have that checked out copy no longer available to be checked out
- I want to be able to see a list of patrons
- I want to be able to search for patrons by name
- I want to be able to see which books a patron has checked out.
- I want to be able to return a copy of a book to circulation when the patron has returned it
- For any given book, I want to see its author or authors, and be able to find all other books by this author or authors.
- For any given author, I want to see a list of books by this author, and be able to click on any book and find out more information about this book, including additional authors
- I want copies of a book to be unique-- i.e., every copy of a book has its own unique ID, allowing its history to be tracked.
- Clone this repository:
$ git clone https://github.com/stuart-gill/Library.Solution
- Change into the work directory::
$ cd Library.Solution
-
To edit the project, open the project in your preferred text editor.
-
To run the tests, move into the Test directory and run this command:
$ dotnet test
-
Open MAMP and hit Start Servers.
-
Open "Tools" from the nav bar and select PHP Admin
-
Create a new database with the name "library"
-
In the database "library", click on the "import" tab and select the "library.sql" file in the project directory.
-
Once this is completed, return to the terminal and run
$ cd library [or make sure you are in the Library.Solution/library folder]
$ dotnet restore
$ dotnet run
- Then follow the link provided to the local server, where you will find the app running in your browser.
- none at this time
Please contact me on github with any questions
- C#
- .NET Core 1.1
- MySql
- MAMP
- Git
- GitHub