Skip to content

Commit df7fbdf

Browse files
author
Allan Bowe
committed
fix: added .npmrc and updated README
1 parent 26a369d commit df7fbdf

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=false

README.md

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
33
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-)
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
5-
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
6-
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
7-
<!-- ALL-CONTRIBUTORS-BADGE:END -->
85

9-
This seed app provides a wrapper for `@sasjs/adapter`, a lightning fast adapter for talking to both SAS 9 and Viya.
6+
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.
107

118
## Frontend Web
129

13-
Clone the repo, `cd` into it, and `npm install`. Then update the following in `index.html`:
10+
Clone the repo, `cd` into it, and `npm install`.
11+
12+
Next, update the following attributes in `index.html`:
1413

1514
- `appLoc` - this is the folder (eg in metadata or SAS Drive) under which the SAS services are created.
1615
- `serverType` - either SAS9, SASVIYA or SASJS.
@@ -27,10 +26,10 @@ If you are running locally you will either need to whitelist `localhost` on the
2726

2827
## Backend Services
2928

30-
Creating services in SAS 9, Viya or SASjs Server can be done entirely in SAS Studio using the code below.
29+
Normally services would be compiled and deployed using the [SASjs CLI](https://cli.sasjs.io), however for speedy setup you can simply run the following code in Studio:
3130

3231
```
33-
%let appLoc=/Public/app/angular; /* Metadata or Viya root folder */
32+
%let appLoc=/Public/app/angular; /* Root folder in Metadata or Drive */
3433
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
3534
%inc mc; /* download and compile macro core library */
3635
filename ft15f001 temp;
@@ -41,7 +40,7 @@ parmcards4;
4140
%webout(OBJ,areas)
4241
%webout(CLOSE)
4342
;;;;
44-
%mp_createwebservice(path=&appLoc/services/common, name=appinit)
43+
%mx_createwebservice(path=&appLoc/services/common, name=appinit)
4544
parmcards4;
4645
%webout(FETCH)
4746
proc sql;
@@ -51,10 +50,12 @@ parmcards4;
5150
%webout(OBJ,springs)
5251
%webout(CLOSE)
5352
;;;;
54-
%mp_createwebservice(path=&appLoc/services/common, name=getdata)
53+
%mx_createwebservice(path=&appLoc/services/common, name=getdata)
5554
```
5655

57-
For building anything other than a seed app, we recommend the `@sasjs/cli` tool for project configuration.
56+
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.
57+
58+
If you set `streamWeb:true` in the `streamConfig` of your `sasjs/sasjsconfig.json` file you can also run as a [streaming app](https://sasapps.io/sas-streamed-apps) (without a web server).
5859

5960
## Contributors ✨
6061

@@ -79,18 +80,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
7980

8081
<!-- ALL-CONTRIBUTORS-LIST:END -->
8182

82-
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
83-
<!-- prettier-ignore-start -->
84-
<!-- markdownlint-disable -->
85-
<table>
86-
<tr>
87-
<td align="center"><a href="https://github.com/VladislavParhomchik"><img src="https://avatars.githubusercontent.com/u/83717836?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vladislav Parhomchik</b></sub></a><br /><a href="https://github.com/sasjs/angular-seed-app/pulls?q=is%3Apr+reviewed-by%3AVladislavParhomchik" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/sasjs/angular-seed-app/commits?author=VladislavParhomchik" title="Tests">⚠️</a></td>
88-
</tr>
89-
</table>
90-
91-
<!-- markdownlint-restore -->
92-
<!-- prettier-ignore-end -->
93-
94-
<!-- ALL-CONTRIBUTORS-LIST:END -->
95-
9683
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

0 commit comments

Comments
 (0)