UNPKG

2.03 kBMarkdownView Raw
1# ms-rest-js
2
3[![Build Status](https://dev.azure.com/azure-public/azsdk/_apis/build/status/public.Azure.ms-rest-js%20-%20CI)](https://dev.azure.com/azure-public/azsdk/_build/latest?definitionId=39)
4
5Runtime 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
27You 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
31This project welcomes contributions and suggestions. Most contributions require you to agree to a
32Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
33the rights to use your contribution. For details, visit https://cla.microsoft.com.
34
35When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
36a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
37provided by the bot. You will only need to do this once across all repos using our CLA.
38
39This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
40For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
41contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.