Skip to content

ataru993/simple-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API for Simple Blog Project

Go Report Card

The App:

This is a simple-blog application with jwt authentication and CRUD operations for posts and comments. Only registered users can create posts and comments.

To run the blog please proceed next:

  1. Clone the repository.
  2. Install the dependencies with go mod download
  3. Create .env file and copy values from .env_example
  4. Follow the instructions to install Taskfile utility
  5. Run the app with task run

Running the tests

  1. Run the tests with task test
  2. Also you can proceed with the OpenAPI docs by link localhost:8080/swagger

Built With

  • Go - The programming language used.
  • net/http - Package used for HTTP client and server implementations.
  • REST - Architectural style for the API.
  • Clean Architecture - Architectural pattern used.
  • Postgres - Database used.
  • Golang-Migrate - Database migrations tool.
  • JWT - Used for authentication.