Modern pastebin written in golang
Go to file
a 3c63282dd9 mster 2022-08-03 05:02:53 -05:00
cmd/server mster 2022-08-03 05:02:53 -05:00
lib mster 2022-08-03 05:02:53 -05:00
static mster 2022-08-03 05:02:53 -05:00
.gitignore Initial commit of Pastebin fork 2016-12-19 19:43:37 +01:00
.travis.yml Update travis ci 2016-07-15 14:27:11 +10:00
Makefile Add accounts 2017-02-05 14:02:32 +10:00
README.md Fix broken Markdown headings 2017-04-18 01:54:09 -03:00
config.json mster 2022-08-03 05:02:53 -05:00
go.mod mster 2022-08-03 05:02:53 -05:00
go.sum mster 2022-08-03 05:02:53 -05:00

README.md

Golang Pastebin

Build Status GoDoc Go Report Card MITlicensed

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