Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adayoung/gae-pastebin
It's an HTML pastebin! Lookie here,
https://github.com/adayoung/gae-pastebin
golang pastebin
Last synced: 3 months ago
JSON representation
It's an HTML pastebin! Lookie here,
- Host: GitHub
- URL: https://github.com/adayoung/gae-pastebin
- Owner: adayoung
- License: mit
- Created: 2015-03-19T06:00:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-21T14:05:58.000Z (7 months ago)
- Last Synced: 2024-06-21T08:31:12.113Z (5 months ago)
- Topics: golang, pastebin
- Language: Go
- Homepage: https://ada-young.com/pastebin/
- Size: 784 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - adayoung/gae-pastebin - It's an HTML pastebin! Lookie here, (golang)
README
[![Go](https://github.com/adayoung/gae-pastebin/actions/workflows/go.yml/badge.svg?branch=master)](https://github.com/adayoung/gae-pastebin/actions/workflows/go.yml)
[![Go report](https://goreportcard.com/badge/adayoung/gae-pastebin)](https://goreportcard.com/report/adayoung/gae-pastebin)# gae-pastebin
Hi! Here's a pastebin that runs ~on Google App Engine~ anywhere!## Prerequisites
* A working [Go](https://golang.org/doc/install) environment, preferably >go1.11
* An account with a PostgreSQL server with credentials noted in keys.yaml
* Access to a [Redis](https://redis.io/) instance without password
* An account with the [Google reCAPTCHA](https://www.google.com/recaptcha/) project with site key and secret key noted in keys.yaml
* An account with [Google Cloud Platform](https://cloud.google.com/) with [Google Drive API (v3)](https://developers.google.com/drive/) enabled, credentials in keys.yaml
* An account with [Cloudflare](https://www.cloudflare.com/) with an API Token scoped for `Zone.Cache Purge`, credentials in keys.yaml## How to use
* Get the package and its dependencies with `go get github.com/adayoung/gae-pastebin`
* `cd $GOPATH/src/github.com/adayoung/gae-pastebin`, `go run .`
* Point your brower to http://localhost:2019/
* Sample deployment stuffs are available in confs/## Building with Docker
Use the following command to build with the latest version of Go:
* `cd `
* `docker run --rm -v $PWD:/go/src/github.com/adayoung/gae-pastebin -w /go/src/github.com/adayoung/gae-pastebin -v $GOPATH:/go -e "CGO_ENABLED=0" golang:latest go build -v -ldflags "-s -w" .`_And keys.yaml to change the CSRFAuthKey and EncryptionK as well!_
_P.S.: This [used to](https://github.com/adayoung/gae-pastebin/releases/tag/v2019-09-29) run on Google App Engine and there's probably a bunch of stuff about it that still lingers on. I'll eventually clean it up :open_mouth:_