Compiling instructions for all platforms
This commit is contained in:
parent
ff37c2a272
commit
a1d3225181
12
README.md
12
README.md
@ -57,10 +57,20 @@ Http | WebSockets
|
|||||||
![](https://github.com/uNetworking/uWebSockets/blob/master/misc/bigshot_lineup.png) | ![](https://github.com/uNetworking/uWebSockets/blob/master/misc/websocket_lineup.png)
|
![](https://github.com/uNetworking/uWebSockets/blob/master/misc/bigshot_lineup.png) | ![](https://github.com/uNetworking/uWebSockets/blob/master/misc/websocket_lineup.png)
|
||||||
|
|
||||||
### Build from source
|
### Build from source
|
||||||
Easiest is to compile yourself a Node.js native addon. The following works for Linux and macOS systems:
|
#### Recursively clone, and enter, this repo:
|
||||||
```
|
```
|
||||||
git clone --recursive https://github.com/uNetworking/uWebSockets.js.git
|
git clone --recursive https://github.com/uNetworking/uWebSockets.js.git
|
||||||
cd uWebSockets.js
|
cd uWebSockets.js
|
||||||
|
```
|
||||||
|
#### For Unix (Linux, macOS):
|
||||||
|
```
|
||||||
make
|
make
|
||||||
|
```
|
||||||
|
#### For Windows (in an x64 developer terminal):
|
||||||
|
```
|
||||||
|
nmake Windows
|
||||||
|
```
|
||||||
|
#### Test it out
|
||||||
|
```
|
||||||
node examples/HelloWorld.js
|
node examples/HelloWorld.js
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user