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
codl ec733c30d6
fix pipfile, requirements.txt
2018-01-03 12:55:01 +01:00
.github add config file for probot's stale 2017-12-27 20:20:31 +01:00
assets add ability to keep only posts without media 2017-12-28 03:02:08 +01:00
components unify button-buttons and link-buttons 2017-09-17 13:20:30 +02:00
libforget fix revoked tokens not being found because of localised error messages 2018-01-03 12:24:35 +01:00
migrations add ability to keep only posts without media 2017-12-28 03:02:08 +01:00
routes add cache headers to sentry js 2017-12-19 16:30:54 +01:00
static whoops icon.png stayed in static/ 2017-08-11 21:30:30 +02:00
templates add ability to keep only posts without media 2017-12-28 03:02:08 +01:00
test codacy 2017-09-24 23:54:03 +02:00
tools update git hook with yarn 2017-08-31 22:43:16 +02:00
.coveragerc test libbrotli 2017-09-08 23:19:59 +02:00
.env store fav/reblog count. first step towards #7 2017-12-27 20:49:19 +01:00
.eslintrc.yml eslint 2017-08-29 18:38:54 +02:00
.gitignore update requirements for tests, add travis.yml 2017-09-08 23:34:12 +02:00
.travis.yml coveralls -> codecov 2017-11-25 00:43:01 +01:00
CHANGELOG.markdown you know what, fuck it. this is v1.0.0 2017-11-13 01:15:03 +01:00
LICENSE add license 2017-08-03 21:52:17 +02:00
Pipfile fix pipfile, requirements.txt 2018-01-03 12:55:01 +01:00
Pipfile.lock fix pipfile, requirements.txt 2018-01-03 12:55:01 +01:00
Procfile fix procfile to allow a decent amout of concurrent jobs 2017-09-20 13:45:20 +02:00
Procfile.dev add development procfile 2017-08-12 01:54:19 +02:00
README.markdown forgot to also change the link oops 2017-11-25 00:54:56 +01:00
app.py fix real old typo 2017-11-19 01:00:30 +01:00
config.example.py unify redis config (closes #8) 2017-09-07 01:10:02 +02:00
dodo.py (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00
forget.example.service add example systemd service file 2017-08-03 22:48:45 +02:00
forget.py split off routes.py 2017-09-16 12:22:17 +02:00
model.py add ability to keep only posts without media 2017-12-28 03:02:08 +01:00
package.json (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00
pytest.ini test libbrotli 2017-09-08 23:19:59 +02:00
requirements.txt fix pipfile, requirements.txt 2018-01-03 12:55:01 +01:00
rollup.config.js (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00
tasks.py more knob twiddling 2017-12-28 15:30:02 +01:00
version.py you know what, fuck it. this is v1.0.0 2017-11-13 01:15:03 +01:00
yarn.lock (rips shirt) HAUUUGH JARVASCRIPT 2017-08-31 18:59:09 +02:00

README.markdown

Forget

User count Maintenance status

Build status Test coverage Code quality Dependencies status

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.

You can run the (currently very incomplete) test suite by running pytest. You'll need redis installed on your development machine, a temporary redis server will be started and shut down automatically by the test suite.


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.