Git Product home page Git Product logo

alphaware_blog_application's Introduction

Alphaware_Blog_Application

Blog Application

This is a simple blog application implemented using Spring Boot. It includes features like user registration, login, post creation, commenting, category management, and more.

Technologies Used

  • Java
  • Spring Boot
  • Spring Security
  • JWT Authentication
  • Swagger

Features

  • User Management: Allows users to register and login using JWT authentication.
  • Post Management: Users can create, view, update, and delete their posts.
  • Commenting: Users can comment on posts.
  • Category Management: Admins can manage categories for posts.

Setup

  1. Clone the repository:

    git clone <https://github.com/Virendrakumardwivedi/Alphaware_Blog_Application>
  2. Build and Run:

    cd blog-application
    mvn spring-boot:run
  3. Access Swagger UI:

    Swagger UI provides an interactive documentation for the API endpoints. Access it at Swagger UI http://localhost:8888/swagger-ui/index.html#/

API Endpoints

  • User API:

    • /api/user/register: Register a new user.
    • /api/user/login: Authenticate and generate JWT token.
    • /api/user/welcome: Welcome message.
    • /api/user/getUsers: Get all users.
    • /api/user/getUsers/{id}: Get user by ID.
  • Post API:

    • /api/posts: Create a new post.
    • /api/posts/{id}: Get post by ID.
    • /api/posts: Get all posts.
    • /api/posts/{id}: Update post by ID.
    • /api/posts/{id}: Delete post by ID.
  • Comment API:

    • /api/comments: Add a new comment.
    • /api/comments/{id}: Get comment by ID.
    • /api/comments: Get all comments.
    • /api/comments/{id}: Update comment by ID.
    • /api/comments/{id}: Delete comment by ID.
  • Category API:

    • /api/category: Create a new category.
    • /api/category/{id}: Get category by ID.
    • /api/category: Get all categories.
    • /api/category/{id}: Delete category by ID.

Security

  • JWT authentication is used for securing the API endpoints.
  • Each request must include a valid JWT token in the Authorization header.

Contribution

Contributions are welcome! Feel free to fork the repository and submit pull requests.

Swagger output

Screenshot (588)

Screenshot (589)

Screenshot (590)

Screenshot (591)

alphaware_blog_application's People

Contributors

virendrakumardwivedi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.