0.0.1 • Published 10 months ago
@64bitlabs/frappe-javascript-sdk v0.0.1
Frappe JavaScript SDK
This is a basic JavaScript SDK Made to work with Frappe Framework. The Overall goal of this Library is to Make Integrations to Frappe backend Easy. This Library Contains Following Things
- Basic Methods Like Get, List, Update
- Authentication to Any Site using Login & Password
- Easy Types Generation
- Support for Both Node & Browser
Setup
yarn add frappe-sdkOnce the Installation is Done You need to Configure it if you are using it for NodeJS or in Browser if CORS is Setup from your Side
import {setBaseURL} from 'frappe-sdk'
setBaseURL('https://example.com')If you are in browser and you have proxy setted up then you don't require above step to do
Methods
Auth
Once the Login is Done it Maintains it's Session.
import {login, logout} from 'frappe-sdk'
await login(usr, pwd);
await logout()Docs
The Official Documentation is Available at frappesdk.64bitlabs.com
License: Apache-2.0
Powered By 64BitLabs
0.0.1
10 months ago