Pastebin
Fancy pastebin written in GO and Redis.
Features
- User defined expiration of pastes.
- Works with or without Javascript.
- Syntax highlighting while viewing or creating a paste (when JS is enabled).
- Simple API
Demo
Installation
Requirements
- Golang
- Redis
Compiling
go get .
go build pastebin.go
./pastebin
Configuration
See config.json
Persistence
You should probably enable AOF persistence if you don't want to lose all your data when the Redis server goes offline for whatever reason. More info here https://redis.io/topics/persistence