@duenorthsystems/domore-auth
v1.1.7
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.12.
Downloads
23
Readme
DomoreAuth
This library was generated with Angular CLI version 9.1.12.
Code scaffolding
Run ng generate component component-name --project domore-auth
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project domore-auth
.
Note: Don't forget to add
--project domore-auth
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build domore-auth -c=production
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After updating the version number in the package.json and package-lock.json run command npm run doPublish
.
Running unit tests
Run ng test domore-auth
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Linking
Install the following packages as peer dependencies:
npm install graphql apollo-angular apollo-angular-link-http apollo-cache-inmemory apollo-link
Dev: run ng build domore-auth --watch
Setup In New Project
Step 1: Install Pacakge
npm install @duenorthsystems/domore-auth
Step 2: Install Dependencies
npm install graphql apollo-angular@^1.10.0 apollo-angular-link-http apollo-cache-inmemory apollo-link
Step 3: Add GraphqlModule to add.module imports
Step 4: Add Enviroment variables
export const environment = {
GRAPH_URI: "http://localhost:1337/api/graphql",
websocket: ws://${ window.location.host }/api/subscriptions
,
rememberLength: 63072000, // two years in seconds.
production: false
};
Step 5: Run ng serve
Your project should now build successfully, if it doesn't report the issue and add the missing step to this list.