command
module
Version:
v0.0.0-...-7d2e1e2
Opens a new window with list of versions in this module.
Published: Apr 18, 2017
License: MIT
Opens a new window with license information.
Imports: 24
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Golang Pastebin

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.

Getting started
Prerequisities
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
Documentation
¶
Package pastebin is a simple modern and powerful pastebin service
Source Files
¶
Click to show internal directories.
Click to hide internal directories.