Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leetaogoooo/pure

a blog based on github discussion
https://github.com/leetaogoooo/pure

blog discussions-blog github-discussions golang

Last synced: 2 months ago
JSON representation

a blog based on github discussion

Awesome Lists containing this project

README

        

# Pure

> It's a blog based on github discussion that lets you focus on your creativity. All you need to do is open your browser, log in to github and start your creative journey, no more worry about file, sync deployment and image uploads. What's more you can migrate your blog in the way you like!

# Deploy

Before you do a deployment, you need to config your own `pure.yaml`

```shell
cp pure.sample.yaml pure.yaml
```
Get your own [GITHUB_ACCESS_TOKEN](https://github.com/settings/tokens) here

## Category

```bash
cd core
go test -run TestApi -v
```

It'll list all your categories, then you can config your `pure.yaml`

# [Deploy To Vercel](https://github.com/LeetaoGoooo/pure/tree/vercel)

Before you do a deployment, you need to config `BlogConfig` in `constants.go`

Get your own [GITHUB_ACCESS_TOKEN](https://github.com/settings/tokens) here

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FLeetaoGoooo%2Fpure%2Ftree%2Fvercel&env=ACCESS_TOKEN,USER_NAME,REPO,REPO_ID,WEB_HOST,WEB_NAME,WEB_BIO,WEB_EMAIL,CATEGORY_ID,CATEGORY_NAME)

## comments

pure use [gitcus](https://github.com/giscus/giscus) as comment system, visit [gitcus-website](https://giscus.app/) to get your repo id ,which can be found in `data-repo-id`

![gitcus-config](./screens/gitcus-config.png)

Then just run the application

```shell
go build main.go
./main
```

# Screens