gae-pastebin

command module
v0.0.0-...-313df08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 10 Imported by: 0

README

Go Go report

gae-pastebin

Hi! Here's a pastebin that runs on Google App Engine anywhere!

Prerequisites

  • A working Go environment, preferably >go1.11
  • An account with a PostgreSQL server with credentials noted in keys.yaml
  • Access to a Redis instance without password
  • An account with the Google reCAPTCHA project with site key and secret key noted in keys.yaml
  • An account with Google Cloud Platform with Google Drive API (v3) enabled, credentials in keys.yaml
  • An account with Cloudflare 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 <path to repository>
  • 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 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 😮

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL