Example-Blog-Server

module
v0.0.0-...-9b3a020 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: MIT

README

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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL