Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
/ paste-rs Public archive

A paste tool written entirely in Rust, and powered by nickel.rs.

License

Notifications You must be signed in to change notification settings

indiv0/paste-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paste-rs Build Status

Database

Setup the database with something like the following:

CREATE USER 'pasteuser'@'localhost' IDENTIFIED BY 'pastepass';

CREATE DATABASE IF NOT EXISTS paste;
USE paste;
CREATE TABLE IF NOT EXISTS paste (
    id           INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    code         TEXT,
    time_created TIMESTAMP,
    data         BLOB
);

GRANT SELECT, INSERT, UPDATE, DELETE ON paste.paste TO 'pasteuser'@'localhost';
FLUSH PRIVILEGES;

Credits

This project was inspired by pxqz by my friend Uiri.

Additional inspiration (particularly for the nickel.rs routing and layout) from superlogical/rusty.

Dependencies used:

About

A paste tool written entirely in Rust, and powered by nickel.rs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published