Project of a service similar to Twitter in functionality. User that is not logged can freely read tweets and their comments, and after registration - write them on his/her own. Tweet and comment length is limited to, respectively, 280 and 60 characters. Tweets and comments can be altered/deleted by user, but only up to 2 hours after creation. Registered users can upload graphic files (size limit: 1MB) that will be used as avatars next to their messages. They can also send private messages to one another (user cannot write a message to himself/herself). Administrator can freely edit or delete every user and tweet or comment. Pagination is implemented, number of tweets per page can be also set.
Example user account: login: Basia password: Basia (logins/passwords to other accounts are created in similar fashion)
Administrator account: login: admin password: adminOpen this project
Object of this workshop was to write a backend functionality for a frontend user service written in previous workshop. To make this API I used Spring MVC, Jackson library and some additional annotations. Frontend part of this workshop, written in HTML and JavaSript, connects via AJAX with REST server that I wrote and, after moving a mouse over a book element, downloads element's data in JSON format and displays this data below. Data is being kept in a volatile memory (server's RAM).
Using Hibernate and Spring Data, I expanded server's capabilities: it's now possible to save data to non-volatile memory (server's database), so now this data isn't lost after server shutdown/restart. User can freely switch between volatile memory and database.