Full-Stack Application to manage books of a library.
Books can be added, edited, rented, returned and deleted by the role librarian.
Adding of books to a library-database is simplified via Google Books API: books can be searched and then added via one click.
The role member can see his rented books and view & filter books of the library-database.
Link to github issues: https://github.com/IrynaKamenska/Capstone-BookLibrary/issues
git clone https://github.com/IrynaKamenska/Capstone-BookLibrary.git
https://capstone-book-library.fly.dev
- Open project in an IDE
- Run
npm install
in frontend folder - Allow installation of backend packages
- Start backend application
- Start frontend application (with start-button in package.json)
- Open http://localhost:3000 in a browser
- To start the application for the first time a user with a role Librarian must be stored in the MongoDB beforehand:
- Open MongoDB-Compass and connect to mongodb://localhost:27017
- Create a database named "library-db"
- Create a collection named "book"
- Create a collection named "appUser"
- Create a Librarian in the "appUser" collection as follows:
username: "JohnDoe"
rawPassword: ""
passwordBcrypt:"$2a$10$yef/EG0medAcG7P0IHyVh.1xAiwa7DUOAEAN/Tve6cOeRjyi2CioK"
role: "LIBRARIAN"`
For password-hashing you can use e.g. https://bcrypt-generator.com/