├── sasjs ├── db │ └── .gitkeep ├── build │ └── .gitkeep ├── macros │ └── .gitkeep ├── sasjsconfig.json └── services │ └── common │ └── appinit.sas ├── .gitignore └── package.json /sasjs/db/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sasjs/build/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sasjs/macros/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | sasjsbuild/ 3 | .env 4 | -------------------------------------------------------------------------------- /sasjs/sasjsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://cli.sasjs.io/sasjsconfig-schema.json", 3 | "macroFolders": [ 4 | "sasjs/macros" 5 | ], 6 | "serviceConfig": { 7 | "serviceFolders": [ 8 | "sasjs/services/common" 9 | ] 10 | }, 11 | "targets": [] 12 | } -------------------------------------------------------------------------------- /sasjs/services/common/appinit.sas: -------------------------------------------------------------------------------- 1 | /** 2 | @file appinit.sas 3 | @brief Initialisation service - runs on app startup 4 | @details This is always the first service called when the app is opened. 5 | 6 |

Dependencies

7 | 8 | **/ 9 | 10 | proc sql; 11 | create table areas as select distinct area 12 | from sashelp.springs; 13 | %webout(OPEN) 14 | %webout(OBJ,areas) 15 | %webout(CLOSE) 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "template_sasonly", 3 | "version": "2.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "SAS", 11 | "SASViya", 12 | "SASjs" 13 | ], 14 | "author": "", 15 | "license": "ISC", 16 | "dependencies": { 17 | "@sasjs/core": "^2.1.2" 18 | } 19 | } 20 | --------------------------------------------------------------------------------