Giter Site home page Giter Site logo

sasjs / folder-navigator Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 15.88 MB

A SASjs Web App for navigating SAS Folders and editing source code in Jobs (Viya) or Stored Processes (SAS 9)

Dockerfile 0.28% JavaScript 2.56% TypeScript 41.73% HTML 37.01% CSS 0.09% SAS 8.51% Shell 0.65% SCSS 9.17%
viya sasjs sas sasjs-app

folder-navigator's Introduction

Overview

All Contributors

The folderNavigator lets you navigate the SAS folder tree - be that metadata in SAS 9 or SAS Drive in Viya.

The purpose of building the app was to provide a way to modify Stored Process source code for developers on Unix / Mac - who don't have Enterprise Guide nor the patience to wait for X11.

You can deploy the app in just two lines of code:

filename runme url "https://raw.githubusercontent.com/sasjs/folder-navigator/master/build.sas";
%inc runme;

To provide the convenience of running those two lines above in both SAS 9 and SAS Viya (without too much rework on our part) the services contain code for both SAS 9 and Viya. This redundancy (deploying Viya code to SAS 9 and vice versa) is not necessary if you are using the SASjs CLI - instead you could define your Viya or SAS 9 specific macros in the target-specific macroFolders and compile/build/deploy relevant code to each target whilst keeping a common codebase in GIT.

We do this extensively with Data Controller as well as customer project built with SASjs (where those projects need to work on both SAS 9 and Viya).

For more information, a demo, or SASjs training, contact Allan Bowe.

Full Deployment

Frontend Web

Clone the repo, cd into it, and npm install. Then update the following in sas.service.ts:

  • appLoc - the location in the metadata or viya folder tree where the backend services will be located.
  • serverType - either SAS9 or SASVIYA.
  • serverUrl - only relevant if not serving from the SAS domain (!SASCONFIG/LevX/Web/WebServer/htdocs in SAS9 or /var/www/html on SAS Viya)
  • useComputeApi - can be true or false, it's a switch for SASjs adapter whether to use Compute approach while doing requests (Viya only).
  • contextName - only relevant if useComputeApi is true. Provides a context name that will be used in adapter.

More details in official @SASjs/adapter documentation: https://sasjs.io/sasjs-adapter/#configuration

If you are running locally you will either need to whitelist localhost on the server, or enable CORS as described here

Finally, execute npm run build to create a production build.

Backend Services

Simply configure the target in the sasjsconfig.json and run sasjs cbd -t yourTarget to compile, build & deploy the backend services to your environment.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Mihajlo Medjedovic

๐Ÿ’ป

Allan Bowe

๐Ÿ’ป

shivakrishnay

๐Ÿ›

This project follows the all-contributors specification. Contributions of any kind welcome!

folder-navigator's People

Contributors

allanbowe avatar medjedovicm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

folder-navigator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.