Web library that uses in КІОНС department in KPI. This service gives the user options to watch the books that physically located in the university library by several variants. All site visitors can open in browser and download book in pdf format(if it exists). User after registration has ability to book a book to pick up its physical copy from the library in the future. Admin has a lot of opportunities to add new book, add new user, edit book/user, add many book using Excel file. Also, the main admin task is to control who and how many books, he can accept or reject booked book, change book status after he gives a physical copy and return book into the library.
This service is using PostgreSQL database that placed in Docker. For storing images for user's and for book covers server is using S3 bucket which is part of Amazon Web Services.
- Clone repository
- Install Docker in your computer
- Run command
docker-compose up
in your project directory - Go to localhost:5050/ and you can pg4admin program
- Enter credentials in login panel
- Create new connection
- Create new database with name web_library
- Go to localhost:8080/ and you can see empty library
How create admin to get full access to the service
- Register new user in library
- Go to the pg4admin in your browser
- Find your created user entity in the library_user table, remember his id
- Find role id in the table users_role with associated with user id
- File role by role id in the role table and change role from the ROLE_USER to the ROLE_ADMIN
- Recompile your project, login by your user credentials and get full access to the library
How add images to the book cover and pdf files for book
- Create account in the aws
- Create new bucket in the S3 service with unique name
- Create IAM user and add to him full access to the S3 service. Save this IAM user credentials
- Go to the application.properties file in the app and put all the credentials their
- Recompile your app, add cover to the book and you will see image on the book
You can visit working site by the link: https://web-library-pson.herokuapp.com/
If you have any question you can write to me by my email: [email protected]