How to Add a Blog to Your Golang Application in Minutes with ButterCMS
This project was created as an example use case of ButterCMS in conjunction with a blog article, How to Add a Blog to Your Golang Application in Minutes with ButterCMS, and will not be actively maintained.
If you're interested in exploring the best, most up-to-date way to integrate Butter into projects, you can check out the following resources:
The following turn-key starters are fully integrated with dynamic sample content from your ButterCMS account, including main menu, pages, blog posts, categories, and tags, all with a beautiful, custom theme with already-implemented search functionality. All of the included sample content is automatically created in your account dashboard when you sign up for a free trial of ButterCMS.
- Nuxt.js Starter
- Angular Starter
- React Starter
- Vue.js Starter
- Or see a list of all our currently-maintained starters
- Check out the official ButterCMS Docs
- Check out the official ButterCMS API docs
This is a server side rendered application written with Golang and ButterCMS API.
To get started,
Firstly, you must ensure you have Golang installed on your local device.
-
Clone the code to your local computer using the command
git clone https://github.com/ButterCMS/golang-blog-tutorial.git
-
Create a
.env
file at the root directory of the project, following the example on the.env.example
-
Add your
read token
gotten from the ButterCMS platform -
Use the following command to start the application.
go run src/server.go