1 | # ms-rest-js
|
2 |
|
3 | [](https://dev.azure.com/azure-public/azsdk/_build/latest?definitionId=39)
|
4 |
|
5 | Runtime for isomorphic javascript libraries (that work in the browser and node.js environment) generated via [Autorest](https://github.com/Azure/Autorest).
|
6 |
|
7 | ## Requirements
|
8 | - Node.js version > 6.x
|
9 | - `npm install -g typescript`
|
10 |
|
11 | ## Installation
|
12 | - After cloning the repo, execute `npm install`
|
13 |
|
14 | ## Execution
|
15 |
|
16 | ### Node.js
|
17 | - Set the subscriptionId and token as instructed in `samples/node-samples.ts`
|
18 | - Run `npx ts-node samples/node-sample.js`
|
19 |
|
20 | ### In the browser
|
21 | - Run `npm run build`
|
22 | - Set the subscriptionId and token then
|
23 | - Open index.html file in the browser. It should show the response from GET request on the storage account. From Chrome type Ctrl + Shift + I and you can see the logs in console.
|
24 |
|
25 | ## Architecture Overview
|
26 |
|
27 | You can find an explanation of how this repository's code works by going to our [architecture overview](https://github.com/Azure/ms-rest-js/blob/master/docs/architectureOverview.md).
|
28 |
|
29 | # Contributing
|
30 |
|
31 | This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
32 | Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
|
33 | the rights to use your contribution. For details, visit https://cla.microsoft.com.
|
34 |
|
35 | When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
|
36 | a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
|
37 | provided by the bot. You will only need to do this once across all repos using our CLA.
|
38 |
|
39 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
40 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
41 | contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|