diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c3c5b20 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 1cfb069..e0c0330 100644 --- a/README.md +++ b/README.md @@ -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 +```