diff --git a/README.md b/README.md index 9b74a2d..a2cc7d4 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,27 @@ the posts/comments dump is read as a stream so handling bigger subreddits is les You can build the SQL script before making the comm/user though. +## usage: +install dependencies + +`yarn install` + +run the program + +`yarn run importer --posts example-submissions.json --comments example-comments.json -c example_archive -u archive_bot -o example.sql` + +option 1: import your sql remotely + +`psql --username=lemmy --dbname=lemmy --port=[lemmy-port] --host=[ip/host] --file=example.sql` + +option 2: import your sql on the server + +`psql --username=lemmy --dbname=lemmy --file=example.sql` + +option 3: import your sql to a docker container + +`