https://github.com/buttercms/golang-blog-tutorial
How to Add a Blog to Your Golang Application in Minutes with ButterCMS
https://github.com/buttercms/golang-blog-tutorial
Last synced: over 1 year ago
JSON representation
How to Add a Blog to Your Golang Application in Minutes with ButterCMS
- Host: GitHub
- URL: https://github.com/buttercms/golang-blog-tutorial
- Owner: ButterCMS
- Created: 2023-01-19T22:55:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T16:36:53.000Z (over 2 years ago)
- Last Synced: 2025-02-22T17:41:15.427Z (over 1 year ago)
- Language: CSS
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang-blog-Tutorial
How to Add a Blog to Your Golang Application in Minutes with ButterCMS
## Important Note
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](https://buttercms.com/blog/golang-blog-tutorial/), 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:
### Starter Projects
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](https://buttercms.com/starters/nuxtjs-starter-project/)
- [Angular Starter](https://buttercms.com/starters/angular-starter-project/)
- [React Starter](https://buttercms.com/starters/react-starter-project/)
- [Vue.js Starter](https://buttercms.com/starters/vuejs-starter-project/)
- Or see a list of all our [currently-maintained starters](https://buttercms.com/starters/)
### Other Resources
- Check out the [official ButterCMS Docs](https://buttercms.com/docs/)
- Check out the [official ButterCMS API docs](https://buttercms.com/docs/api/)
## Getting Started
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`