2
0
mirror of https://github.com/codl/forget synced 2024-12-13 17:08:12 +01:00
Servizio per cancellare i messaggi quando superano una certa età. Limita l'account ad un numero massimo di post, cancellando quelli più vecchi. Conserva i vecchi post che contano con un favorito. Imposta e dimentica https://mastodon.uno
Go to file
2017-09-02 19:05:57 +02:00
assets settings.js: when logged out, redirect to index 2017-09-02 19:05:57 +02:00
components small visual changes 2017-08-31 21:56:17 +02:00
lib aughh sentryyyyy 2017-09-02 19:05:46 +02:00
migrations default next_delete to null 2017-08-31 21:22:22 +02:00
static whoops icon.png stayed in static/ 2017-08-11 21:30:30 +02:00
templates more fiddling with timing of javascript load 2017-09-01 02:35:33 +02:00
tools update git hook with yarn 2017-08-31 22:43:16 +02:00
.eslintrc.yml eslint 2017-08-29 18:38:54 +02:00
.gitignore whoops icon.png stayed in static/ 2017-08-11 21:30:30 +02:00
app.py add sentry js back in 2017-08-31 20:46:38 +02:00
CHANGELOG.markdown v0.0.9 2017-08-31 23:19:54 +02:00
config.example.py working brotli cache 2017-08-11 19:13:37 +02:00
dodo.py (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00
forget.example.service
forget.py flakes8 2017-08-29 14:46:32 +02:00
LICENSE
model.py model: __str__ not __repr__ 2017-09-02 10:44:21 +02:00
package.json (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00
Procfile celery: use fair task scheduling 2017-08-11 00:08:46 +02:00
Procfile.dev add development procfile 2017-08-12 01:54:19 +02:00
README.markdown update readme 2017-08-31 23:51:59 +02:00
requirements.txt Revert "add shoddy statsd support" 2017-08-28 23:25:26 +02:00
rollup.config.js (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00
routes.py remove /api/viewer/timers 2017-08-31 22:43:16 +02:00
tasks.py fiddle with schedules 2017-09-01 01:45:24 +02:00
version.py v0.0.9 2017-08-31 23:19:54 +02:00
yarn.lock (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00

Forget

Codacy Badge

Forget is a post deleting service for Twitter and Mastodon. It lives at https://forget.codl.fr.

Running your own

Requirements

  • Postgresql
  • Redis
  • Python 3.6+
  • Yarn or NPM

Set up venv

Setting up a venv will isolate Forget from your system's libraries and allow you to install dependencies locally as a normal user. It's not necessary but it is recommended!

$ python -m venv venv
$ source venv/bin/activate

If you're using zsh or fish as a shell, substitute venv/bin/activate with venv/bin/activate.zsh or venv/bin/activate.fish, respectively.

You will need to "activate" the venv in every new terminal before you can use pip or any python tools included in dependencies (honcho, flask...)

Download and install dependencies

$ pip install -r requirements.txt
$ yarn || npm install

Wow!! Exciting

Create and complete config file

Gotta set up those, paths, and stuff.

$ cp config.example.py config.py
$ $EDITOR config.py

Set up database schema

If you haven't started postgresql yet now would be a great time to do that.

$ createdb forget # if you havent created the DB yet
$ env FLASK_APP=forget.py flask db upgrade

Build static assets

Gonna do it...!

$ doit

Done did it.

Running

The included Procfile will run the app server and the background worker. honcho, a Procfile runner, is included as a dependency:

$ honcho start

The application server will listen on http://127.0.0.1:42157. You'll want to use your favourite web server to proxy traffic to it. This author suggests Caddy.

Development

For development, you may want to use Procfile.dev, which starts flask in debug mode and rebuilds the static assets automatically when they change

$ honcho -f Procfile.dev start

Or you could just look at Procfile.dev and run those things manually. It's up to you.


If you're having trouble with Forget, or if you're not having trouble but you just want to tell me you like it, you can drop me a note at @codl or codl@codl.fr. Thanks for reading this readme.