vickychijwani /
quill
:ghost: [MOVED TO https://github.com/TryGhost/Ghost-Android] The beautiful Android app for your Ghost blog.
Loading repository data…
d-langelihlekhumalo / repository
Java Blogging App: Master Spring Boot & Hibernate. Build RESTful CRUD for User, Post, Comment entities. Validate data, handle errors, test with JUnit/Mockito, document endpoints. Submit via Gitlab to showcase Java, Hibernate, Spring Boot skills.
Basic Blogging Application
This is a fundamental RESTful web application built using Java, Spring Boot, and Hibernate ORM. It allows users to create, read, update, and delete blog posts and comments. Java Blogging App: Master Spring Boot & Hibernate. Build RESTful CRUD for User, Post, Comment entities. Validate data, handle errors, test with JUnit/Mockito, document endpoints. Submit via Gitlab to showcase Java, Hibernate, Spring Boot skills.
Make sure you have the following installed on your system:
| Username | Password | Endpoint |
|---|---|---|
| root | root | jdbc:mysql://localhost:3306/basic_blog |
Implemented basic exception handling to cater for:
mvnw test
mvnw clean
mvnw install
mvnw clean install
cd target
java -jar basic-blog-0.0.1-SNAPSHOT.jar
| Description | Http Method | Request Type | Response Type | Authorised Users | Successful Http Status | Unsuccessful Http Status | Endpoint |
|---|---|---|---|---|---|---|---|
| New User | POST | JSON | JSON | NONE | 201 CREATED | 400 BAD REQUEST | /api/auth/register |
| Get All Users | GET | JSON | JSON | ADMIN | 200 OK | 404 NOT FOUND | /api/users |
| Get Single User | GET | JSON | JSON | ALL | 200 OK | 404 NOT FOUND | /api/users/{userId} |
| Update User | PUT | JSON | JSON | ALL | 200 OK | 401 UNAUTHORIZED | /api/users |
| Delete User | DELETE | JSON | TEXT | ALL | 200 OK | 401 UNAUTHORIZED | /api/users/{userId} |
| Description | Http Method | Request Type | Response Type | Authorised Users | Successful Http Status | Unsuccessful Http Status | Endpoint |
|---|---|---|---|---|---|---|---|
| New Post | POST | JSON | JSON | ADMIN | 201 CREATED | 401 UNAUTHORIZED | /api/posts |
| Get All Posts | GET | JSON | JSON | ALL | 200 OK | 404 NOT FOUND | /api/posts |
| Get Single Post | GET | JSON | JSON | ALL | 200 OK | 404 NOT FOUND | /api/posts/{postId} |
| Update Post | PUT | JSON | JSON | ADMIN | 200 OK | 401 UNAUTHORIZED | /api/posts/{postId} |
| Delete Post | DELETE | JSON | TEXT | ADMIN | 200 OK | 401 UNAUTHORIZED | /api/posts/{postId} |
Required data when attempting to create a new Post:
NB: Only Admin users are allowed to CREAT NEW POSTS
NB: Please provide admin credentials
NB: in postman use Basic Auth
Required data when attempting to update a Post:
Required data when deleting a Post:
| Description | Http Method | Request Type | Response Type | Http Status | Endpoint |
|---|---|---|---|---|---|
| New Comment | POST | JSON | JSON | 201 CREATED | /posts/{postId}/comments |
| Get All Comments | GET | JSON | JSON | 200 OK | /posts/{postId}/comments |
| Get Single Comment | GET | JSON | JSON | 200 OK | /posts/{postId}/comments/{commentId} |
| Update Comment | PUT | JSON | JSON | 200 OK | /posts/{postId}/comments/{commentId} |
| Delete Comment | DELETE | JSON | TEXT | 200 OK | /posts/{postId}/comments/{commentId} |
CREATE DATABASE basic_blog;
Run the rest api at least once and then stop the server this will auto create the tables needed
In your prefed sql editor or management service, run the code below:
Create defualt admin:
You can modify the default values as you please
USE basic_blog;
INSERT INTO users (email, name, password, date_created)
VALUES ('admin@mail.com', 'administrator', '$2a$10$WMbE5Z875BtBmuf6U2IViuzGO/ePB78YjBINW9vNFYDd0aTsKb1oy', '2023-09-17 09:36:26.076091');
SELECT * FROM basic_blog.users;
USE basic_blog;
INSERT INTO roles (name)
VALUES ('ROLE_ADMIN');
INSERT INTO roles (name)
VALUES ('ROLE_USER');
SELECT * FROM basic_blog.roles;
USE basic_blog;
INSERT INTO users_roles (user_id, role_id)
VALUES (1, 1);
SELECT * FROM basic_blog.users_roles;
Selected from shared topics, language and repository description—not editorial ratings.
vickychijwani /
:ghost: [MOVED TO https://github.com/TryGhost/Ghost-Android] The beautiful Android app for your Ghost blog.
codezoned /
A completely Opensource blogging App/Platform
philipdaquin /
📖 Fullstack Community Blogging App in Java Spring and Angular, Apache Kafka, Redis, Mapstructs, JWT
JideGuru /
A mobile app that allows you to manage your Google's blogger dashboard from your android device.
FrontSide /
A Blogging Web-App written in Java using the Framework Play.
kiruthikraaj /
Story is a blogging app(Android).The reason why I created is to connect my classmates where they can tell about what they think and what they need for their development. I used Google Firebase for my authentication and database storage. Also I just added the screen shots of my blogging app. We can also add a username and display picture of the users. This may be very helpful for my classmates and also we can blog anything that can make others feel good. I used Android Studio as the Development kit and Java as my programming language.