Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcblw/motm-request
Module of the Month @riversidejs - this month 'request'
https://github.com/jcblw/motm-request
Last synced: 16 days ago
JSON representation
Module of the Month @riversidejs - this month 'request'
- Host: GitHub
- URL: https://github.com/jcblw/motm-request
- Owner: jcblw
- Created: 2013-11-03T03:11:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T14:09:13.000Z (over 7 years ago)
- Last Synced: 2024-10-11T14:39:00.886Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Module of the Month
Every month I hope to cover a new module in [npm](http://npmjs.org).
This months was `request`, a module to do external request to server.
### Settup
To add request you will need to run
```
npm install request --save
```for this demo we are using the Tumblr API and it requires an api key, to do this signup for Tumblr then create an app in their dev section. After you create the app you will have an `Oauth Consumer Key`. Take that key and add it to a file ( that you will need to create ), .env... It should look like.
```
TUMBLR_KEY=xxxxxxxxxxxxxx
```
to get this key out of this file install `dotenv` you can do this by just installing the rest of the modules with.```
npm install
```## Running Demos
There are two diffent demos one for normal request and streaming to run the normal request
```
node index
```To run the streaming demo
```
node index stream
```Both of these commands should be ran from the root of the demo