An implementation of a backend blog microservice written in go.

Overview

Blog

This is an implementation of the backend of a blog service written in Go 1.17 created with a microservice architecture in mind. Currently implemented is a simple model for blog posts using MySQL as a DB backend with Redis caching.

This has been developed with containers in mind and is configured using environment variables. To use deploy this in a Go 1.17 container and pass the following environment variables;

Name Value
DB_HOST Hostname for MySQL Database (string)
DB_NAME Database name for MySQL Database (string)
DB_PASSWORD Password for MySQL Database (string)
DB_USER Username for MySQL Database (string)
HTTP_HOST Hostname to listen on (string)
HTTP_PORT Port to listen on (int)
REDIS_DB Redis database to use (int)
REDIS_HOST Hostname for Redis cluster (string)
REDIS_PASSWORD Password for Redis cluster (string)

To do

Tags

  • Implement Tags model

Search functionality

  • Elasticsearch integration

Authentication

  • Implement authentication

Logging

  • Loki integration

Done

  • Implement blog post model
  • Have Redis caching
  • Logging as JSON format for future Loki integration
  • Prometheus metrics exporter
You might also like...
Gokkan is a dokkan (shop) backend written in Go

Gokkan is an online shop backend service written in Go. Setup Requirements # or docker-compose up make up Gokkan requires postgresql as databas

Backend to project Dating App. Written in GO, utilising Gin. MongoDB, AWS S3 and SNS.

Dating API Backend to project Dating App. Written in GO, utilising Gin. MongoDB, AWS S3 and SNS. In order to run simply type "go run ." The API requir

Plenti Static Site Generator with Go backend and Svelte frontend
Plenti Static Site Generator with Go backend and Svelte frontend

Plenti Static Site Generator with Go backend and Svelte frontend Website: https://plenti.co Requirements ❗ You must have NodeJS version 13 or newer As

The source code for workshop Scalable architecture using Redis as backend database using Golang + Redis

The source code for workshop Scalable architecture using Redis as backend database using Golang + Redis

Instagram Backend HTTP REST API using GO Lang and Mongo DB

Instagram Backend HTTP REST API using GO Lang and Mongo DB Project for Appointy Summer Internship . Project built within 25 hrs, with no prior knowled

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.
A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

Build a TodoList with Go Design and implement a backend RESTful service in golang with CRUD

May we ask Igor to do a little project in leu of sample code? If there is a hire, the hours spent should be invoiced, so please keep track of that. Th

Buff Up Backend Challenge For Go

Buff Up Backend Challenge As part of the recruitment process we would like to complete the following backend challenge. We use this backend challenge

Chat backend which serves REST APIs

Chat backend which serves REST APIs

Owner
Alan Parrish
Alan Parrish
Blog backend based on go implementation

个人博客后端文档 简介 相关功能 v0.1 用户登录、注册 文章发布、查看、评论、点赞 粉丝相关(关注) v0.2 排行榜(文章发布数量、粉丝) v0.3 流量统计 技术栈 语言选用go 大致技术栈选用: kratos + redis + jwt + gorm 项目地址 todo 项目结构

Leslie Lau 0 Dec 4, 2021
Blog backend system based on GO

个人博客后端文档 简介 相关功能 v0.1 用户登录、注册 文章发布、查看、评论、点赞 粉丝相关(关注) v0.2 排行榜(文章发布数量、粉丝) v0.3 流量统计 技术栈 语言选用go 大致技术栈选用: kratos + redis + jwt + gorm 项目地址 todo 项目结构

Leslie Lau 0 Nov 26, 2021
Hosting of the "Programming DIY / Программирование - это просто!" blog

This repository contains materials of the personal blog "Программирование - это просто / Programming DIY". How to use the blog engine A blog post abou

Alexander Demin 39 Jul 15, 2022
gin api blog

Gin项目 介绍 以下是基于gin开发的项目接口,将持续更新,有兴趣请star,本项目包含mysql,redis,elasticsearch,mongo,rabbitmq,kafka,jaeger,单机限流,分布式限流,sentry, jwt,请求参数验证,发送邮件,图片上传,httpclient用

Colin 17 May 10, 2022
Golang beego framework based personal simple blog system

goblog 基于Golang的个人简易博客系统 [TOC] goblog介绍 goblog基于go语言开发的一个简约版个人博客系统,基于Golang语言编写,后端基于了Beego的web框架,目前具备博文系统最基础的功能模块.基本上是一个拿来即用的个人博文平台,只需要部署一个mysql数据存储服务

Mr.Qin 2 Nov 9, 2021
A simple blog based on gin framework

gin-blog 介绍 a simple blog based on gin framework 软件架构 MySQL/MariaDB as database 安装教程 基于Docker启动MySQL/MariaDB 使用说明 启动MySQL in Docker. 参与贡献 Fork 本仓库 新建

jimmyyem 0 Nov 15, 2021
A blog system implemented via golang.

goblog functions work as a blog site read/write blogs signup/signin/logout vote with stars 1~5 user admin: add ranks to users: bronze, silver, gold wo

彭 0 Jan 5, 2022
DCreater - Build your own blog system with golang

DCreater - Build your own blog system with golang

null 2 Aug 18, 2022
Blog - Exploring Domain Driven Design In Go

Exploring Domain Driven Design In Go

Sammi Aldhi Yanto 1 Jan 25, 2022
Simple Go BE to serve blog posts

Simple Go BE to serve blog posts

Kevin Laborda 0 Jan 25, 2022