Skip to content

Commit 4209837

Browse files
author
root
committed
New guide
1 parent 6237a54 commit 4209837

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@
1010
1. Create a `.env` file in the project root.
1111

1212
```
13-
DATABASE_NAME=deepcommunity
14-
DATABASE_USER=user
15-
DATABASE_PASSWD=pass
13+
DATABASE_USER=deepcommunity
14+
DATABASE_PASSWD=something
15+
16+
TWITTER_CONSUMER_KEY=something
17+
TWITTER_CONSUMER_SECRET=something
18+
TWITTER_ACCESS_TOKEN=something
19+
TWITTER_ACCESS_SECRET=something
20+
21+
SUPERVISORD_PASSWD=something
1622
```
1723

1824
2. Create database
@@ -21,15 +27,17 @@ Run `bash bin/create_db.sh`
2127

2228
### Fetch resources
2329

24-
Fetch Arxiv papers:
30+
Fetch Arxiv papers and tweets.
2531

2632
```bash
27-
python bin/fetch_new_sources.py arxiv
33+
python bin/fetch_new_sources.py all
2834
```
2935

3036
### Setup web server
3137

32-
1. Copy configuration files for supervisord and nignx
38+
1. Install nginx
39+
40+
2. Copy configuration files for supervisord and nignx
3341

3442
```bash
3543
bash bin/config_server.sh

bin/fetch_new_sources.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010
ap.add_argument("src", help="source name: arxiv, twitter, youtube, reddit")
1111
args = ap.parse_args()
1212

13-
fetch_sources(args.src)
13+
if args.src == "all":
14+
# Okay, you want to get all things
15+
fetch_sources("arxiv")
16+
fetch_sources("twitter")
17+
else:
18+
fetch_sources(args.src)

0 commit comments

Comments
 (0)