aboutsummaryrefslogtreecommitdiff
path: root/README-bgstack15.md
blob: e0cd9bc739f35b3e6f01898b75d91efb6f210f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!--
  -- Filename: README-bgstack15.md
  -- Startdate: 2022-02-11
  --
  -->
# Overview
This is my proposed solution to my pastebin problem.

# Features

* Admin page which can list parents, children, and provide link to delete pastes.
* Editable titles
* "Reply to" pastes to make parent/children relationships
* UUIDs instead of sequential integer ID numbers
* Private pastes (accessible to admin, and to users with the whole link)

# Instructions

Generate new db.

    python3 initdb.py

Run server in development mode.

    FLASK_APP=pastebin.py FLASK_DEBUG=True flask run --host='0.0.0.0'

# Improvements
I still need to work on these tasks:

## Development

* Protect the /admin/ page
* Add expiry of pastes? (use existing pubdate value, or just an extra column with desired expiration timestamp)

## Release

* Read any of my flask projects (fuss is the best one) to learn how to setup prod server
* Document centos7 dependencies
* Deploy to prod

# Alternatives

## Unresearched
https://github.com/yasoob/logit-bin
https://github.com/AWilliams17/PasteMate
https://github.com/bsamadi/flask-pastebin

## Attempted
https://github.com/Tygs/0bin sounds cool but it uses a stack I'm unfamiliar with and it had some issues and I didn't want to bother with it.
bgstack15