Skip to content
Deva Kumar edited this page Apr 27, 2022 · 13 revisions

Introduction

viya-appserverjs is an app server designed for rapid development and deployment of SAS Viya applications. The server uses hapijs to do all the heavy lifting. viya-appserverjs takes advantage of the great configurabilty of hapijs.

The key features are:

  1. Supports authentication using authorization_code flow and implicit flow
  2. Supports serving up static content
  3. Can be extended with custom routes (suggest using @sassoftware/viya-apiserverjs for this)
  4. Supports TLS

Basic Steps

  1. Build your app
  2. Obtain a clientid and clientsecret - see Managing clientids for instructions on how to create clientid
  3. Configure the server using a combination of environment variables, env files and Dockerfile
  4. Start the server with a simple command
npx @sassoftware/viya-appserverjs  --env=your-env-envfile --docker=your-Dockerfile --appenv=your-appenv.js-file

Please visit Getting Started to develop your application server with minimal effort.

Clone this wiki locally