# restaf-demos

> nodejs demos for restaf

Latest version **0.3.0** (published 2018-03-10) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install restaf-demos
pnpm add restaf-demos
yarn add restaf-demos
bun add restaf-demos
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2018-03-10 |
| First published | 2018-03-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 55.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Deva Kumaraswamy |
| Maintainers | devakumaraswamy |
| Keywords | restaf |

## Links

- npm: https://www.npmjs.com/package/restaf-demos
- Repository: https://github.com/sassoftware/restaf-demos
- Homepage: https://github.com/sassoftware/restaf-demos#readme
- Issues: https://github.com/sassoftware/restaf-demos/issues
- npm.io page: https://npm.io/package/restaf-demos

## Dependencies (2)

- [restaf](https://npm.io/package/restaf.md) ^0.2.1
- [prettyjson](https://npm.io/package/prettyjson.md) ^1.2.1

## Recent versions

- 0.3.0 (latest) — 2018-03-10

## README

# restaf-demos

A collection of examples demonstrating then use of restaf in nodejs.
The demos cover typical SAS software usages - running datastep, running cas actions,
accessing VA reports etc...

Please review the source code to see how restaf is used to achieve
the desired goal with minimal coding.


## Install
```
example:
git clone https://github.com/sassoftware/restaf-demos.git
cd restaf-demos
npm install
```

## Configure the app
### Server setup
To run this application you need to do the following:

1. Ask your system administrator to enable CORS using the SAS Environment Manager.

2. Ask your system administrator to give you a clientid and clientSecret appropriate
for password flow.

### Creating env file
Copy the demos.env file to some location.
Edit demos.env file and follow the instructions in the file.
Key values to set:

1. VIYA_SERVER
2. CLIENTID
3. CLIENTSECRET



## Running the application
```
node examples/<name of example> <location of env file>

Example:
If the modified env file is at ../demos.env then to run logon.js example enter

node examples/logon ../demos/env
```

---
_Source: https://npm.io/package/restaf-demos · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
