Modern pastebin written in golang
Go to file
Patrik Martinsson 825fffe502 Initial commit of pastebin fork
It's quite big rewrite and indivdual commits are not available since
its so big. Introducing features like,
- Support for multiple database backends and configurations like
  dbname/tablename/ports/adresses/etc.
- Support for dynamically adding languages and lexers from pygments,
  autodetection of language is also supported.
- Support for changing styles (and languages) on the fly, also row-highlightning
  and rownumbers.
- Support for showing information about when paste expires.
- Support for goo.gl-shortener.
- Extreme debugging =)
- Probably added a few bugs in there as well =)
2016-12-18 15:12:24 +01:00
assets Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
.gitignore Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
.travis.yml Update travis ci 2016-07-15 14:27:11 +10:00
config.json Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
database.sql Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
highlighter-wrapper.py Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
LICENSE.md Rename LICENSE file 2016-07-14 11:57:22 +10:00
Makefile Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
pastebin.go Initial commit of pastebin fork 2016-12-18 15:12:24 +01:00
README.md Update README.md 2016-10-20 10:29:31 +10:00

#Golang Pastebin Build Status GoDoc Go Report Card MIT
licensed

Modern self-hosted pastebin service with a restful API.

Motivation

Many Pastebin services exist but all are more complicated than they need to be. That is why I decided to write a pastebin service in golang.

paste

Getting started

Prerequisities

  • pygmentize
  • go
  • mariadb
pip install pygmentize
sudo yum install -y go mariadb-server mariadb

Installing

  • Please note this assumes you have Mariadb and Go already setup.
  • go get github.com/ewhal/Pastebin
  • make
  • mysql -u root -p
  • CREATE USER 'paste'@'localhost' IDENTIFIED BY 'password';
  • CREATE database paste;
  • GRANT ALL PRIVILEGES ON paste . * TO 'paste'@'localhost';
  • FLUSH PRIVILEGES;
  • quit;
  • mysql -u paste -p paste < database.sql
  • cp config.example.json config.json
  • nano config.json
  • Configure port and database details

License

This project is licensed under the MIT License - see the LICENSE.md file for details