Skip to content

KushagraMehta/Example-Blog-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example-Blog-Server


Basic practice blog server written in go for CRUD operation

Getting started

Project requires having Go 1.16 or above and postgreSQL. Once you clone(or go get) you need to configure the following:

  1. Change the DotEnv file according to your envirnment.
  2. Install Task runner go get -u github.com/go-task/task/v3/cmd/task
  3. Install dependence go mod download
  4. task migration for initializing database.
  5. task test for testing project working.
  6. task run to start project.

More About project


To-do

  • Write Database schema
  • Create Database Trigger for like_count(posts), total_post(tags)
  • Connect Database with GO
  • Create Model Function in Golang
  • Refactoring Code
  • Write Unit Test of model
  • Write Mock Test on model
  • Design All API end-points
  • Implement API in REST
    • Implement JWT Authentication
    • Write Authentication Middleware
    • Write proper Error response
  • Write proper documentaion for API endpoints
  • Write Unit Test for API end points
  • Heroku Deployment
  • Write Docker File