Giter Site home page Giter Site logo

christian24 / angular-seed-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sasjs/angular-seed-app

0.0 0.0 0.0 4.38 MB

Angular seed app for SASjs

JavaScript 0.21% TypeScript 2.89% CSS 0.01% SAS 11.18% HTML 0.98% Dockerfile 0.01% SCSS 84.72%

angular-seed-app's Introduction

Overview

All Contributors

This seed app provides a quick start for building an Angular Web app on Viya, SAS EBI or Foundation SAS with the SASjs DevOps framework.

Frontend Web

Clone the repo, cd into it, and npm install.

Next, update the following attributes in index.html:

  • appLoc - this is the folder (eg in metadata or SAS Drive) under which the SAS services are created.
  • serverType - either SAS9, SASVIYA or SASJS.
  • 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.
  • contextName - only relevant if useComputeApi is true. Provides a context name that will be used in adapter.
  • LoginMechanism - either Default or Redirected. See SAS Logon section.
  • requestHistoryLimit - Request history limit. Increasing this limit may affect browser performance, especially with debug (logs) enabled. Default is 10.
  • debug - if true then SAS Logs and extra debug information is returned.

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

Backend Services

Normally services would be compiled and deployed using the SASjs CLI, however for speedy setup you can simply run the following code in Studio:

%let appLoc=/Public/app/angular;  /* Root folder in Metadata or Drive */
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;  /* download and compile macro core library */
filename ft15f001 temp;
parmcards4;
    proc sql;
    create table areas as select distinct area from sashelp.springs;
    %webout(OPEN)
    %webout(OBJ,areas)
    %webout(CLOSE)
;;;;
%mx_createwebservice(path=&appLoc/services/common, name=appinit)
parmcards4;
    %webout(FETCH)
    proc sql;
    create table springs as select * from sashelp.springs
      where area in (select area from areas);
    %webout(OPEN)
    %webout(OBJ,springs)
    %webout(CLOSE)
;;;;
%mx_createwebservice(path=&appLoc/services/common, name=getdata)

To use the CLI, first run sasjs add and follow the prompts to create a target. You can then run sasjs cbd -t yourtargetname to compile, build, and deploy your backend.

If you set streamWeb:true in the streamConfig of your sasjs/sasjsconfig.json file you can also run as a streaming app (without a web server).

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Allan Bowe

๐Ÿ’ป โš ๏ธ ๐Ÿ‘€ ๐Ÿ“น ๐Ÿ“–

Yury Shkoda

๐Ÿ’ป โš ๏ธ ๐Ÿ“† ๐Ÿ“น ๐Ÿ“–

Krishna Acondy

๐Ÿ’ป โš ๏ธ ๐Ÿ‘€ ๐Ÿš‡ ๐Ÿ“ฆ ๐Ÿšง ๐Ÿ–‹

Muhammad Saad

๐Ÿ’ป โš ๏ธ ๐Ÿ‘€ ๐Ÿง‘โ€๐Ÿซ ๐Ÿ“–

Sabir Hassan

๐Ÿ’ป โš ๏ธ ๐Ÿ‘€ ๐Ÿค”

Mihajlo Medjedovic

๐Ÿ’ป โš ๏ธ ๐Ÿ‘€ ๐Ÿš‡

Vladislav Parhomchik

โš ๏ธ ๐Ÿ‘€

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

angular-seed-app's People

Contributors

allanbowe avatar allcontributors[bot] avatar christian24 avatar dependabot-preview[bot] avatar krishna-acondy avatar medjedovicm avatar saadjutt01 avatar semantic-release-bot avatar vladislavparhomchik avatar yuryshkoda avatar

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.