Book Inventory Management System:
The project is built using MERN stack:
Steps to Run the project:
- git clone '
- Open cloned repository using VSCode.
- cd
- Run 'npm install' in the terminal to install all dependencies for your backend server.
- In config/keys.js folder replace MONGO_URI value with your own database URL provided in mlab.com
- To run backend run 'npm run server'
- cd client folder
- Run 'npm install' to install dependencies.
- Run 'npm start' to run server.
- There is an Owner of System who takes care of adding a new book to inventory, Updating number of books in inventory, remove a book from inventory.
- All users can see books present in the inventory.
- All users can search for a particular book, it returns all google APi books with max results =10 (this number can be changed) along with the availability of each book in inventory.
- For adding, updating, deleting of inventory only owner can perform so I have added to an extra field to enter password as "ali123" as an authorization. This value is hard-coded and can be changed anytime in the AddBook.js & BookList.js file in components folder.
- In order to add a book in inventory, user has to input title(compulsory), author(optional), publisher(optional) names along with number of copies, this triggers retrieve matching books from Google API Books, from this list user click on appropriate book and it will be added to inventory and an unique book id is sent back to be saved by owner.
- For updating number of records, we assume owner has book id that he has to input along with the password.
- Point Number 3 applies same for deletion.
- For searching books, to check which books returned by Google Books API are available in inventory I used dictionary to store combination of title and author name as a key and number of records as a value.
- For showing Large number of records Pagnination wil be an effective choice.
- Better authorization for Owner.
- Better Search process including author name and publisher name.
- For updating, deleting records, can take title, author name as an input field instead of unique book id field, since it is hard to remember the unique book id values.