@morabr/mora-sdk
v1.0.4
Published
Mora SDK
Readme
Mora SDK
Installation
Install the package with npm
npm i @morabr/mora-sdk --saveUse the package in the project
import 'dotenv/config'
import { MoraSDK } from '@morabr/mora-sdk'
async function main() {
const sdk = new MoraSDK({
baseURL: 'http://localhost:3000',
autoRefresh: true
});
await sdk.authenticate({ email: '[email protected]', password: 'P@ssw0rd' })
}
main().then(() => {
console.log('script running with success')
})Generate Api from Swagger
SWAGGER_JSON_PATH=http://localhost:3000/docs-json npm run gen:api
