Skip to content
Modern pastebin written in golang
Go HTML CSS Python Makefile
Branch: master
Clone or download
ewhal Merge pull request #11 from bryant1410/master
Fix broken headings in Markdown files
Latest commit 7d2e1e2 Apr 18, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Fix up more minor issues Feb 5, 2017
.gitignore Initial commit of Pastebin fork Dec 19, 2016
.travis.yml Update travis ci Jul 15, 2016
LICENSE.md Rename LICENSE file Jul 14, 2016
Makefile
Pastebin Add accounts Feb 5, 2017
README.md Fix broken Markdown headings Apr 18, 2017
config.json Add accounts Feb 5, 2017
database.sql
highlighter-wrapper.py Make highlighter script work with python3 and log a better error than Dec 19, 2016
pastebin.go fix up typos Feb 5, 2017

README.md

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

You can’t perform that action at this time.