https://github.com/sassoftware/restaf-uidemos
Examples of SAS Viya Applications built with restaf
https://github.com/sassoftware/restaf-uidemos
Last synced: about 1 year ago
JSON representation
Examples of SAS Viya Applications built with restaf
- Host: GitHub
- URL: https://github.com/sassoftware/restaf-uidemos
- Owner: sassoftware
- License: apache-2.0
- Created: 2018-03-01T22:54:11.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T14:49:04.000Z (over 1 year ago)
- Last Synced: 2025-04-09T16:13:11.226Z (about 1 year ago)
- Language: JavaScript
- Size: 60.5 MB
- Stars: 8
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# restaf-uidemo
A collection of examples demonstrating then use of restaf in web applications.
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.
## Pre-requisites
Create an authorization_code flow clientid and clientsecret(ex: sample value shown below)
- clientid = rafdrk
- clientsecret = secret
- redirectUri =
## Install
```script
git clone https://github.com/sassoftware/restaf-uidemos
cd restaf-uidemos
npm install
```
## Setup application
Edit override.env and set the values to your situation. The key values to be set are shown below with sample values
```env
VIYA_SERVER=http://xxxx
APPNAME=viyaapp
AUTHFLOW=code
CLIENTID=rafdrk
CLIENTSECRET=secret
APPENTRY=index.html
```
Then run the following command:
```script
npm start
```
Visit this site on your browser:
You will be prompted for your userid and password. If logon is successful you will be presented a web page with choices for running different applications.
You can add your own apps to this list ( see index.html )
## Docker container
Use the scripts dkrbuild and dkrrun in package.json to setup and run the app in docker