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
Endpoint: POST /blog
Create a new blog by providing the title, subtitle, and content.
Endpoint: GET /blogs
Retrieve a list of all blogs.
Endpoint: GET /blog/{id}
Retrieve a specific blog by its ID.
Endpoint: PUT /blog/{id}
Update the title, subtitle, and content of a specific blog.
Endpoint: DELETE /blog/{id}
Delete a specific blog by its ID.
| Postman Response | Postman Tests |
|---|---|
![]() |
![]() |
| Postman Response | Postman Tests |
|---|---|
![]() |
![]() |
| Postman Response | Postman Tests |
|---|---|
![]() |
![]() |
| Postman Response | Postman Tests |
|---|---|
![]() |
![]() |
| Postman Response | Postman Tests |
|---|---|
![]() |
![]() |
| User Interaction | System Flow |
|---|---|
![]() |
![]() |
-
Clone the Project:
- Clone the repository using the following command:
git clone https://github.com/FadeHack/REST-API
- Clone the repository using the following command:
-
Navigate to Project Directory:
- Change into the project directory:
cd REST-API
- Change into the project directory:
-
Run Backend:
- Install Dependencies:
go mod download
- Start the backend server:
go run main.go
- Install Dependencies:
-
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
















