Compiling instructions for all platforms

This commit is contained in:
Alex Hultman 2019-01-16 21:44:36 +01:00 committed by GitHub
parent ff37c2a272
commit a1d3225181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
### 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
cd uWebSockets.js
```
#### For Unix (Linux, macOS):
```
make
```
#### For Windows (in an x64 developer terminal):
```
nmake Windows
```
#### Test it out
```
node examples/HelloWorld.js
```