usage guide in readme
This commit is contained in:
parent
5a2e268f3c
commit
ead0c22817
21
README.md
21
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.
|
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
|
||||||
|
|
||||||
|
`<example.sql docker exec -i [container-id] psql --username=lemmy --dbname=lemmy -`
|
||||||
|
|
||||||
## TODO:
|
## TODO:
|
||||||
- set URL embed titles/descriptions and url_content type and embed_video_url in posts
|
- set URL embed titles/descriptions and url_content type and embed_video_url in posts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user