DCreater - Build your own blog system with golang

Creater

Create your blog server

Requirement

  • docker
  • docker-compose

Install

  1. setup database
    • start up mysql container by docker and mount the database on database/maindata
    • load databse and table mysql -u root -p app < app_scheme.sql
    • turn off ONLY_FULL_GROUP_BY SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
  2. write the config file
    • write the following server config file, name should be app.yaml and put under app/config
    ---
    servers:
        main: &main_server
            host: 127.0.0.1
            port: 8000
            domain: dcreater.com
            RunMode: release #debug
            ReadTimeout: 60s
            WriteTimeout: 60s
            FilePath: ./file # path of user file
            LogPath: ./log # path of log file
            ViewPath: ./view
            reCAPTCHA:
                key: your_reCAPTCHA_key
                AcceptScore: 0.5 # from 0 to 1
    databases:
        main: &main_database
            driver: mysql
            user: your_user
            password: your_password
            name: app
            param: "parseTime=true"
            host: db
            port: 3306
            option:
                MaxOpenConnects: 25
                MaxIdleConnects: 0
                ConnMaxLifetime: 300 # secondsd
    ...
  3. change the reCAPTCHA_token in app/view/js/sign.js
  4. you con modify the docker-compose file to change path
  5. go to app folder and build the app docker build -t "yanbinlin/creater" .
  6. prepare ssl cert for nginx

Usage

  1. Since the front end don't suppor sine up now, you should sing up user to databese first
  2. run the docker compose
Similar Resources

Give developers an easy way to create and integrate bank processing into their own software products

Give developers an easy way to create and integrate bank processing into their own software products

Community · Blog moov-io/bankcron Moov's mission is to give developers an easy way to create and integrate bank processing into their own software pro

Sep 27, 2022

Community system build using GoFrame.

Community system build using GoFrame.

Focus聚焦社区是GoFrame社区项目,采用了简洁强大的GoFrame作为后端WEB框架, 由于前台系统需要SEO因此使用了GF自带template模板引擎,数据库用MySQL,前端使用jQuery/bootstrap框架。

Dec 7, 2022

Soong is the replacement for the old Android make-based build system

Soong Soong is the replacement for the old Android make-based build system. It replaces Android.mk files with Android.bp files, which are JSON-like si

Oct 10, 2021

REST-API specifically build to support online store system of Zahir

REST-API specifically build to support online store system of Zahir

Rest Test. • From Above ERD please create Rest full API. Create register API(Include Generate password). • Acceptance o Phone number and email is uniq

Nov 15, 2021

GoAdmin is a toolkit to help you build a data visualization admin panel for your golang app.

GoAdmin is a toolkit to help you build a data visualization admin panel for your golang app.

the missing golang data admin panel builder tool. Documentation | 中文文档 | 中文介绍 | DEMO | 中文DEMO | Twitter | Forum Inspired by laravel-admin Preface GoAd

Nov 25, 2021

Hammond is a self hosted vehicle management system to track fuel and other expenses related to all of your vehicles.

Hammond is a self hosted vehicle management system to track fuel and other expenses related to all of your vehicles.

Hammond is a self hosted vehicle management system to track fuel and other expenses related to all of your vehicles. It supports multiple users sharing multiple vehicles. It is the logical successor to Clarkson which has not been updated for quite some time now.

Jan 2, 2023

A golang framework helps gopher to build a data visualization and admin panel in ten minutes

A golang framework helps gopher to build a data visualization and admin panel in ten minutes

the missing golang data admin panel builder tool. Documentation | 中文介绍 | DEMO | 中文DEMO | Twitter | Forum Inspired by laravel-admin Preface GoAdmin is

Dec 30, 2022

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

May 5, 2022

A quick and easy password protected web server for your files. httpfolder makes downloading/uploading files from your current working directory easy, even for fairly large files.

httpfolder A quick and easy password protected web server for your files. httpfolder makes downloading/uploading files from your current working direc

Sep 12, 2022
Golang beego framework based personal simple blog system
Golang beego framework based personal simple blog system

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

Nov 9, 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

Jan 5, 2022
Blog backend system based on GO

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

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

Jul 15, 2022
gin api blog

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

Oct 14, 2022
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 本仓库 新建

Nov 15, 2021
Blog backend based on go implementation

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

Dec 4, 2021
An implementation of a backend blog microservice written in go.

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 impleme

Dec 9, 2021
Blog - Exploring Domain Driven Design In Go

Exploring Domain Driven Design In Go

Jan 25, 2022
Simple Go BE to serve blog posts

Simple Go BE to serve blog posts

Jan 25, 2022