Skip to content

SBlog: A blog management web app used to seamlessly perform CRUD operations on your blogs with a user-friendly interface. The application allows users to create new blog posts, retrieve a list of all blogs, fetch a specific blog by its ID, update existing blogs, and delete blogs based on their unique identifiers. 🚀

Notifications You must be signed in to change notification settings

FadeHack/S-Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SBlog Application

Technology Specification

This blog application is built using the following technologies:

  • Backend:

    • Language: Go (Golang)
    • Framework: GoFr
    • Database: MongoDB
    • Dependencies: Go Modules
  • Frontend:

    • HTML, CSS, JavaScript
    • Bootstrap for styling

Usage

Create New Blog

Endpoint: POST /blog

Create a new blog by providing the title, subtitle, and content.

Get All Blogs

Endpoint: GET /blogs

Retrieve a list of all blogs.

Get Blog By ID

Endpoint: GET /blog/{id}

Retrieve a specific blog by its ID.

Update Blog By ID

Endpoint: PUT /blog/{id}

Update the title, subtitle, and content of a specific blog.

Delete Blog By ID

Endpoint: DELETE /blog/{id}

Delete a specific blog by its ID.

Postman Collection

Run In Postman

Screenshots

1. Create New Blog

Frontend: Create New Blog - Frontend

Postman Response Postman Tests
Create New Blog - Postman Response Create New Blog - Postman Tests

2. Get All Blogs

Frontend: Get All Blogs - Frontend

Postman Response Postman Tests
Get All Blogs - Postman Response Get All Blogs - Postman Tests

3. Get Blog By ID

Frontend: Get Blog By Id - Frontend

Postman Response Postman Tests
Get Blog By Id - Postman Response Get Blog By Id - Postman Tests

4. Update Blog By ID

Frontend: Update Blog By Id - Frontend

Postman Response Postman Tests
Update Blog By Id - Postman Response Update Blog By Id - Postman Tests

5. Delete Blog By ID

Frontend: Delete Blog By Id - Frontend

Postman Response Postman Tests
Delete Blog By Id - Postman Response Delete Blog By Id - Postman Tests

Sequence Diagram

User Interaction System Flow
User Interaction Diagram System Flow Diagram

How to Run

  1. Clone the Project:

    • Clone the repository using the following command:
      git clone https://github.com/FadeHack/REST-API
  2. Navigate to Project Directory:

    • Change into the project directory:
      cd REST-API
  3. Run Backend:

    • Install Dependencies:
      go mod download
    • Start the backend server:
      go run main.go
  4. Run Frontend:

    • Open a new terminal and navigate to the frontend directory.
    • For local usage, it's recommended to use the "Live Server" extension to run the frontend.

Created by @FadeHack

About

SBlog: A blog management web app used to seamlessly perform CRUD operations on your blogs with a user-friendly interface. The application allows users to create new blog posts, retrieve a list of all blogs, fetch a specific blog by its ID, update existing blogs, and delete blogs based on their unique identifiers. 🚀

Resources

Stars

Watchers

Forks