baasic-sdk-angularjs
Version:
AngularJS SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).
58 lines (37 loc) • 2.38 kB
Markdown
# Baasic Core AngularJS SDK
Baasic AngularJS Core library provides integration access to [Baasic REST API](http://dev.baasic.com/api/reference/home) core end-points.
## Initialization
To be able to use the library you will need to add the Baasic (_baasic.api_) dependency to your AngularJS module.
```javascript
angular.module('my-module', ["baasic.api"])
```
### Application Configuration
Baasic AngularJS library allows you to use multiple Baasic applications in your AngularJS modules. To initialize a Baasic application you will need to add the following code to you module configuration:
```javascript
module.config(["baasicAppProvider",
function (baasicAppProvider) {
var app = baasicAppProvider.create("my-app-identifier", {
apiRootUrl: "api.baasic.com",
apiVersion: "<version>"
});
}]);
```
**Note:** _To obtain a Baasic Application Identifier please create your application on [Baasic Registration](https://dashboard.baasic.com/register/) page._
## Baasic Modules
Baasic back-end contains various built-in modules that can be easily consumed through the Baasic AngularJS library. Baasic Developer Center contains detailed information about all the core modules supported by the [AngularJS library](http://dev.baasic.com/sdk#AngularJS).
## Build Process
1. Install [NodeJs](http://nodejs.org/download/)
2. Open Shell/Command Prompt in the Baasic AngularJS folder
3. Run `npm install`
4. Install gulp globally: `npm install -g gulp`
5. Run `gulp`
## Contributing
##### Pull requests are always welcome
We appreciate pull requests you make, and we'll do our best to process them as quickly as we can. Even if it's just a typo you found or any small or large issue you fixed - please do it! It will help us a lot.
If your pull request is not accepted on your first try, don't be discouraged! If there's a problem with your implementation, hopefully you received feedback on what to improve.
##### Issue reporting
Before you create a new issue, please make sure it hasn't already been reported. In case it already exists simply add a quick _"+1"_ or _"I have the same problem"_ to the existing issue thread.
##### Other
* Help us write the documentation
* Create interesting apps using SDK
* Looking for something else to do? Get in <u>touch</u> ...