JavaScript SDK provides core functionality for building web and mobile applications on [Baasic](
Baasic BaaS sdk JavaScript Backend browser client-side


Project Name baasic-sdk-javascript Project Url
InceptionYear 2017-03-24 08:03:23 更新时间 2018-11-30 01:32:55
IssueManagement Licenses MIT
仓库地址 git+ 用户数 0
Node Engine 文件大小 955.8 KB
install start watch watch:tsc watch:webpack build:dev build:prod build:docs build:tsc clean:build


# Baasic JavaScript SDK Baasic JavaScript library provides integration access to [Baasic REST API]( core end-points. ## Dependencies Baasic JavaScript library has the following dependencies: * [jQuery]( * [HAL Parser]( * [URI Template]( ## Usage This section will describe how to add the Baasic JavaScript library to your project. It's important to know that Baasic JavaScript SDK uses JSON format by default and it be setup to use HAL+JSON format for the back-end communication. You can find out more about HAL format [here]( ### Adding the library to your project Please add the following lines of code after the jQuery include (if you are installing this as a dependency of Baasic Angular SDK, or any other framework, you can safely ignore jQuery dependency): ```html ``` *Note:* Baasic JavaScript SDK depends on [reflect-metadata]( package, in order to use the sdk directly and not as a part of another JavaScript framework reflect-metadata should be manually imported into the project. Other Baasic SDKs or frameworks may handle this dependency automatically. jQuery dependency should be used only if sdk is used separately from other JavaScript frameworks, if sdk is used as a part of some framework (e.g. Angular) then sdk for that specific framework should be used and jQuery is not needed as a dependency. ### Application Configuration To create the _BaasicApp_ you will need to use the _baasicSdkJavaScript_ object on the global scope. ```javascript //Note: this is configuration example only, these are the defaults var options = { apiRootUrl: '', apiVersion: '', enableHALJSON: false }; var application = new baasicSdkJavaScript.BaasicApp('', options); ``` ### Module Usage ```javascript application.membershipModule.login.login({ username: '', password: '' }).then(function (data) { //Do your work here }, function (data) { console.log(data); }); ``` ## Baasic Modules Baasic back-end contains various built-in modules that can be easily consumed through the Baasic JavaScript library. Baasic Developer Center contains detailed information about all the core modules supported by the [JavaScript library]( ## Build Process 1. Install [NodeJs]( 2. Open Shell/Command Prompt in the Baasic JavaScript folder 3. Run `npm install` 4. npm run build:dev _or_ npm run build:prod Baasic JavaScript library has the following developer dependencies: * [Inversify]( ## 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 touch ...


GroupId ArtifactID Version 引用量
Mariusz Nowak es6-symbol 3.1.3 331
Remo H. Jansen inversify 4.14.0 423
Ron Buckton reflect-metadata 0.1.13 5812
Microsoft Corp. tslib 2.0.0 38954
Franz X Antesberger uritemplate 0.3.4 24


GroupId ArtifactID Version 引用量
Toru Nagashima npm-run-all 4.1.4 9451
John Reilly ts-loader 7.0.5 19144
aciccarello typedoc 0.17.7 12221
Microsoft Corp. typedoc-webpack-plugin 1.1.4 71
Radoslaw Swiat webpack-auto-inject-version 1.2.2 48
bebraw webpack-cli 3.3.11 48902
Juho Vepsalainen webpack-merge 4.2.2 15179
pychen webpack-uglify-js-plugin 1.1.9 83