Ginblog screenshot

Ginblog

Author Avatar Theme by Denisbakhtin
Updated: 27 Aug 2024
142 Stars

Gin-based blog boilerplate

Categories

Overview:

The GIN-powered blog boilerplate is a skeleton project that provides essential features for web blogs. It follows the MVC pattern and includes features such as user authorization, ORM, an admin dashboard, javascript form validation, RSS feeds, and more. It is built using GIN, a web microframework for Golang, and incorporates other libraries and frameworks such as GORM, logrus, Twitter Bootstrap 4, Parsley JS, CKEditor 5, bluemonday, and more. The project also includes deployment instructions and suggestions for continuous development.

Features:

  • MVC pattern
  • User authorization
  • ORM library for Go (GORM)
  • Admin dashboard
  • JavaScript form validation
  • RSS feeds
  • Webpack asset compiler
  • CKEditor 5 with image upload
  • HTML sanitizer
  • XML sitemap for search engines
  • Periodic task launcher
  • Site search with Postgresql full-text search
  • Social plugins (share, like buttons)
  • Auto posting previews to social walls
  • Custom 404, 405, 500 error pages

Installation:

  1. Copy the sample config file cp config/config.json.example config/config.json.
  2. Create a PostgreSQL database and modify the config/config.json file accordingly.
  3. Install npm and webpack. Run npm install in the project directory.
  4. Launch the web server by running go run main.go. Rebuild assets with npm run build.

Summary:

The GIN-powered blog boilerplate provides a solid foundation for building web blogs using Golang and various libraries and frameworks. It includes essential features such as MVC pattern, user authorization, ORM, and an admin dashboard. The installation process is straightforward, and the project offers suggestions for customizing and deploying the blog. Continuous development options are also provided for easy development and asset rebuilding.