https://github.com/ewhal/Pastebin
Modern pastebin written in golang
https://github.com/ewhal/Pastebin
database go golang mariadb modern mysql pastebin pastebin-service postgresql web-app web-application
Last synced: about 2 months ago
JSON representation
Modern pastebin written in golang
- Host: GitHub
- URL: https://github.com/ewhal/Pastebin
- Owner: ewhal
- License: mit
- Created: 2016-06-10T14:31:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T04:55:10.000Z (about 8 years ago)
- Last Synced: 2025-03-21T23:11:12.474Z (2 months ago)
- Topics: database, go, golang, mariadb, modern, mysql, pastebin, pastebin-service, postgresql, web-app, web-application
- Language: Go
- Homepage: https://p.pantsu.cat
- Size: 4.91 MB
- Stars: 117
- Watchers: 5
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Golang Pastebin
[](https://travis-ci.org/ewhal/Pastebin) [](https://godoc.org/github.com/ewhal/Pastebin) [](https://goreportcard.com/report/github.com/ewhal/Pastebin) [](https://raw.githubusercontent.com/ewhal/Pastebin/master/LICENSE.md)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
* 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](LICENSE.md) file for details