Self-Hosted alternative to GitHub Gists
 
 
 
 
 
 
Go to file
Aravinth Manivannan f8b9172b88
feat: REST endpoint to get comment by ID
DESCRIPTION
    Each comment is uniquely identified by database assigned, serially
    incremented ID. Access controlled but optionally authenticated HTTP
    REST endpoint is added to get comment by ID.

ERRORS RETURNED
    - Gist doesn't exist: 404 GistNotFound
    - Gist is private and requesting user is not ower or is not
      authenticated: 404 GistNotFound
    - Comment is empty: 400 EmptyComment
    - Gist exists and is visible to requesting user but comment doesn't
      exist: 404 CommentNotFound
2022-02-19 23:01:29 +05:30
.github fix: lints and run migrations before generating coverage in CI 2022-02-13 00:07:28 +05:30
config feat: bootstarp gists 2022-02-12 23:48:35 +05:30
database feat: return comment ID after comment creation 2022-02-19 21:40:58 +05:30
docs feat: ecosystem overview 2022-02-12 16:31:00 +05:30
src feat: REST endpoint to get comment by ID 2022-02-19 23:01:29 +05:30
.env-sample feat: bootstrap database ops 2022-02-12 16:35:55 +05:30
.gitignore feat: setup tests 2022-02-12 18:25:45 +05:30
Cargo.lock feat: read_file processes directories 2022-02-18 21:38:38 +05:30
Cargo.toml feat: read_file processes directories 2022-02-18 21:38:38 +05:30
LICENSE.md add license 2022-02-11 17:42:13 +05:30
Makefile feat: add gists_gists, gists_comments and gists_comments & related methods 2022-02-14 20:11:26 +05:30
README.md feat: update todo list 2022-02-18 23:59:37 +05:30
build.rs init 2022-02-11 17:42:35 +05:30
sqlx-data.json feat: add gists_gists, gists_comments and gists_comments & related methods 2022-02-14 20:11:26 +05:30

README.md

Gists

Self-Hosted GitHub Gists

Build dependency status codecov

Features

  • Upload code snippets(✓ REST API)
  • Syntax Highlighting
  • Comments
  • Versioning through Git
  • Fork gists
  • Gist privacy: public, unlisted, private
  • Git clone via HTTP and SSH
  • Activity Pub implementation for publishing native gists and commenting
  • Gitea OAuth integration

Why?

Gists are nice, while there are wonderful forges like Gitea, there isn't a libre pastebin implementation that can rival GitHub Gists.

Usage

  1. All configuration is done through ./config/default.toml(can be moved to /etc/gists/config.toml).