2.0.31 • Published 8 years ago

construct-angular2 v2.0.31

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

Angular2 Construct API Wrapper

This repository is an Angular 2 provider for the Accela ConstructApi.

Installation

npm install --save construct-angular2

Usage

  • Setup the Construct API as a dependency during your app bootstrap.
import { ConstructApi } from 'construct-angular2';
  • Add the Construct API as a provider during your app bootstrap.
@App({
  providers: [
    ConstructApi
  ]
})
  • Setup the Construct API during your app bootstrap.
constructor(private constructApi:ConstructApi)

initializeApp() {
  this.constructApi.setup({
    apiHost: 'https://apis.accela.com',
    appId: '<your api id here>'
  });
}
  • Setup the auth token on the Construct API once a user logs in.
this.auth.user$.subscribe(user => {
  this.constructApi.setAuthToken(user.authToken);
  this.constructApi.setAgency(user.agency);
  this.constructApi.setEnvironment(user.env);
});

Contributing

Building Steps

    git clone https://github.com/Accela-Inc/construct-angular2.git
    cd construct-angular2
    npm install
    typings install
    npm run test

Testing

To test, run npm test

Publishing the npm package

  • Make your changes to the repo
  • Run npm test to ensure everything works properly
  • Commit your changes to the repo
  • Run npm run prepublish
  • Run npm version patch path is 1.0.x, minor is 1.x.0 and major is x.0.0
  • Run npm publish

Next steps

  • Add more unit tests
  • Contributions welcome

Updating the NPM package

https://docs.npmjs.com/getting-started/publishing-npm-packages

2.0.31

8 years ago

2.0.30

8 years ago

2.0.29

9 years ago

2.0.28

9 years ago

2.0.27

10 years ago

2.0.26

10 years ago

2.0.25

10 years ago

2.0.24

10 years ago

2.0.23

10 years ago

2.0.22

10 years ago

2.0.21

10 years ago

2.0.20

10 years ago

2.0.19

10 years ago

2.0.18

10 years ago

2.0.17

10 years ago

2.0.16

10 years ago

2.0.15

10 years ago

2.0.14

10 years ago

2.0.13

10 years ago

2.0.12

10 years ago

2.0.11

10 years ago

2.0.10

10 years ago

2.0.9

10 years ago

2.0.8

10 years ago

2.0.7

10 years ago

2.0.6

10 years ago

2.0.5

10 years ago

2.0.4

10 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.8

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago