Baqend JavaScript SDK
npm install baqendBaqend JavaScript SDK and CLI for High-Performance Websites
* Docs and API
* CLI help
* Dashboard
__Please review the contribution guide for information on how to contribute to this project before supplying a merge request.__
* New fixes, features or other code work is done in separate branches. Please refer to the contribution guide for branch naming rules and
other rules on contributing to this project.
Regularily (at leas once a day) rebase* your feature branch onto the master branch. This will make sure, that you're working on the most up-to-date code.
The chance for merge conflicts is much lower as well.
CLI
-----
Baqend provides a CLI to easily manage your app. Install it by typing npm install -g baqend.
Afterwards you can use the baqend command in your terminal.
If you don't already have a Baqend account, type baqend register to create your first app.
Now you can open the dashboard of your app with baqend dashboard. To see all the command use baqend help.
Setup
-----
To use the Baqend SDK, just include the baqend.js or
baqend.min.js from the dist folder
at the bottom of your body.
Alternatively you can install the Baqend SDK with npm. Just type npm install baqend
Or download the latest release directly from GitHub.
``html`
You can use unpkg.com to directly load the dependency into your browser
`html`
The Baqend SDK provides a global Baqend variable by default.
Initialize
----------
Before you can actually use the Baqend SDK, you must link the Baqend SDK to your Baqend Account.
Just call Baqend.db.connect( after including the Baqend SDK.
The Baqend SDK connects to your Baqend and initialize the SDK. If the connection was successfully established
the ready callback will be called, and the db can be used to load, query and save objects.
`html`
Upgrading from 2.x
-----
There are may some steps required to upgrade to the v3 version if you have previously used our v2 release.
We recommend changing your current imports to use the new
ES2015 module structure
of the SDK.
Therefore, you should migrate your code to use the new ES2015 module imports:
`htmlDist Tags
latest4.2.4