{"id":21812709,"url":"https://github.com/kapil7982/alphaware_blog_application","last_synced_at":"2026-05-05T09:32:39.846Z","repository":{"id":233831904,"uuid":"786943462","full_name":"Kapil7982/Alphaware_Blog_Application","owner":"Kapil7982","description":"This is a Spring Boot application that provides a RESTful API for a blog platform. Users can create, read, update, and delete blog posts, categories, and comments.Maintaining the Login and Signup with the Jwt token. With the help of the Jwt token maintaining the authority and authorization.","archived":false,"fork":false,"pushed_at":"2024-05-23T14:57:25.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T22:30:49.984Z","etag":null,"topics":["java-8","mvc-architecture","mysql-database","spring-boot","springsecurity-jwt"],"latest_commit_sha":null,"homepage":"http://localhost:8888/swagger-ui/index.html#/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kapil7982.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-15T15:40:55.000Z","updated_at":"2024-05-23T14:57:29.000Z","dependencies_parsed_at":"2025-06-03T00:48:10.466Z","dependency_job_id":null,"html_url":"https://github.com/Kapil7982/Alphaware_Blog_Application","commit_stats":null,"previous_names":["kapil7982/alphaware","kapil7982/alphaware_blog_application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kapil7982/Alphaware_Blog_Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAlphaware_Blog_Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAlphaware_Blog_Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAlphaware_Blog_Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAlphaware_Blog_Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kapil7982","download_url":"https://codeload.github.com/Kapil7982/Alphaware_Blog_Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAlphaware_Blog_Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32643652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java-8","mvc-architecture","mysql-database","spring-boot","springsecurity-jwt"],"created_at":"2024-11-27T14:19:21.321Z","updated_at":"2026-05-05T09:32:39.825Z","avatar_url":"https://github.com/Kapil7982.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog Application\nThis is a Spring Boot application that provides a RESTful API for a blog platform. Users can create, read, update, and delete blog posts, categories, and comments.Maintaining the Login and Signup with the Jwt token. With the help of the Jwt token maintaining the authority and authorization between Admin and User.\n\n## Video\nVideo explanation of the application:- https://drive.google.com/file/d/1AYaKRuN8Lj05Wxk5orzX_OoeL5ow8aqC/view?usp=sharing\n## Tech Stack\n- Java\n- Hibernate\n- Spring Framework\n- Spring Boot with JPA\n- MySQL\n- Maven\n- Lombok\n\n## Modules\n- User\n- Post\n- Category\n- Comments\n\n## MySql database details\n\nInstall and connect with database\n\n```bash\n#changing the server port\nserver.port=8888\n#db specific properties\nspring.datasource.url=jdbc:mysql://localhost:3306/blogApp\nspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\nspring.datasource.username=root\nspring.datasource.password=port\n\n#ORM s/w specific properties\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.show-sql=true\n```\n## Features\n1. User Management: Users can register and log in to the application.\n2. Post Management: Users can create, read, update, and delete blog posts.\n3. Category Management: Administrators can create, read, update, and delete categories for blog posts.\n4. Comment Management: Users can add, update, and delete comments on blog posts.\n5. Feed: Users can fetch all posts created on the current day.\n\n## Installation\n 1. Clone this repository\n```bash\ngit clone https://github.com/Kapil7982/Alphaware\n```\n2. Navigate to the project directory:\n```\ncd BlogApp\n```\n## API Endpoints\n### User Endpoints\n- ```POST /api/user/register:``` Register a new user.\n- Payload\n  ```\n  {\n  \"custId\": 0,\n  \"name\": \"Kapil\",\n  \"email\": \"Kapil@gmail.com\",\n  \"password\": \"Kapil@123\",\n  \"role\": \"User\"\n  }\n  ```\n- ```GET /api/user/login:``` Log in an existing user.\n#### Post Endpoints\n- ```GET /api/posts:``` Retrieve all posts.\n- ```GET /api/posts/{id}:``` Retrieve a specific post by ID.\n- ```GET /api/posts/feed:``` Retrieve all posts created on the current day.\n- ```POST /api/posts:``` Create a new post.\n- Payload\n  ```\n  {\n    \"title\": \"New Post Title\",\n    \"content\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\",\n    \"customer\": {\n      \"custId\":1\n    },\n    \"category\": {\n        \"id\": 1\n    }\n  }\n  ```\n- ```PUT /api/posts/{id}:``` Update an existing post.\n- ```DELETE /api/posts/{id}:``` Delete a post.\n#### Category Endpoints\n- ```GET /api/categories:``` Retrieve all categories.\n- ```GET /api/categories/{id}:``` Retrieve a specific category by ID.\n- ```POST /api/categories:``` Create a new category.```\n- Payload\n   ```\n   {\n   \"name\": \"Technology\"\n   }\n   ```\n   \n- ```PUT /api/categories/{id}:``` Update an existing category.\n- ```DELETE /api/categories/{id}:``` Delete a category.\n#### Comment Endpoints\n- ```GET /api/comments/post/{postId}:``` Retrieve all comments for a specific post.\n- ```POST /api/comments//post/{postId}/customer/{customerId}:``` Create a new comment for a post.\n- Payload\n   ```\n   {\n   \"content\": \"string\"\n   }\n   ```\n- ```PUT /api/comments/{id}:``` Update an existing comment.\n- ```DELETE /api/comments/{id}:``` Delete a comment.\n## Swagger-UI\n![Screenshot 2024-04-18 102700](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/fb512a1c-6049-4dc3-8443-b29ebc286a5d)\n---\n![Screenshot 2024-04-18 102435](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/9c39659e-a8a4-407a-ab43-def0a9242270)\n---\n![Screenshot 2024-04-18 103339](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/9a03d910-2cf7-4e55-a9c4-e191615fd9c4)\n---\n![Screenshot 2024-04-18 103419](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/bb25271c-8b4c-4992-b8ae-224b6c6fd5e9)\n---\n![Screenshot 2024-04-18 103947](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/b9f54c31-4fff-4fbe-a88e-a54d197533ba)\n---\n![Screenshot 2024-04-18 102841](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/db431cf6-3c2b-470d-a14d-6c9070cc18f5)\n---\n![Screenshot 2024-04-18 102955](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/79122ee9-8c00-4f8e-aa9d-190495deddca)\n---\n![Screenshot 2024-04-18 104853](https://github.com/Kapil7982/Alphaware_Blog_Application/assets/103938868/f92a2246-f7d1-498f-8fb1-11c933ebfc7f)\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapil7982%2Falphaware_blog_application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkapil7982%2Falphaware_blog_application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapil7982%2Falphaware_blog_application/lists"}