Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
install:
npm install
pip install -r requirements.txt
python -m nltk.downloader punkt averaged_perceptron_tagger

run:
python server.py
TEST=true node chatbot.js

serve:
python server.py
node chatbot.js

test:
npm run-script lint
npm run-script frontend_tests
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ This bot lives at [https://gitter.im/osdc/Hackers](https://gitter.im/osdc/Hacker
### Installation:

```
$ npm install
$ pip install -r requirements.txt
$ make install
```

### Running:
### Running locally with I/O to stdin and stdout:

```
$ python server.py
$ TEST=true node chatbot.js # Run locally with I/O to stdin and stdout.
$ make run
```

### Testing:
### Running in production

Run code linter: `npm run-script lint`
```
$ make serve
```

Run frontend tests: `npm run-script frontend_tests`
### Testing:

```
$ make test
```