Skip to content

Commit 00e669c

Browse files
author
Igor Khomenko
committed
Update README.md
1 parent 4b5d2ea commit 00e669c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ easier to access the QuickBlox cloud communication backend platform.
88

99
# Install
1010

11-
**Dependencies for browser**
11+
## Dependencies for browser
1212

1313
For the library to work, you need to include either [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/) in your html before `quickblox.min.js`, like so:
1414

@@ -19,18 +19,26 @@ For correct work of JS SDK you must include the library in your html before `qu
1919
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/1.17.2/quickblox.min.js"></script>
2020
```
2121

22-
**Bower**
22+
## Bower and RequireJS
23+
24+
If you use bower package manager for your project, you can install JS SDK through bower:
2325

2426
```
2527
bower install quickblox --save
2628
```
2729

28-
**Node.js and NPM**
30+
When you use **RequireJS**, you are able to use quickblox as AMD module. SDK supports [UMD (Universal Module Definition)](https://github.com/umdjs/umd) pattern for JavaScript modules. So it is possible to use SDK everywhere (as browser global variable, with AMD module loader like RequireJS or as CommonJS module for Node.js environment).
31+
32+
## Node.js and NPM integration
33+
34+
Also you can use QuickBlox JavaScript SDK with server-side applications on NodeJS through the native node package. Just install the package in your application project like that:
2935

3036
```
3137
npm install quickblox --save
3238
```
3339

40+
And you're ready to go:
41+
3442
```javascript
3543
var QB = require('quickblox');
3644

0 commit comments

Comments
 (0)