GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ewhal/Pastebin: Modern pastebin written in golang

BranchesTags
Open more actions menu

Latest commit

 

History

277 Commits
277 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
Pastebin
Pastebin
 
 
README.md
README.md
 
 
config.json
config.json
 
 
database.sql
database.sql
 
 
highlighter-wrapper.py
highlighter-wrapper.py
 
 
pastebin.go
pastebin.go
 
 

Repository files navigation

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

About

Modern pastebin written in golang

p.pantsu.cat

Topics

databasegogolangmariadbmodernmysqlpastebinpastebin-servicepostgresqlweb-appweb-application

Resources

Readme
MIT license
Activity

Stars

114 stars

Watchers

4 watching

Forks

20 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.