1.0.0 • Published 2 years ago
@niledatabase/js v1.0.0
@niledatabase/js
Usage
A full list of functions available to the Nile object can be found in the docs.
Basic example
import Nile from "@niledatabase/js";
const nile = Nile({ apiUrl: props.apiUrl });
await nile.developer.loginDeveloper({
loginInfo: {
email: "dev@dev.dev",
password: "123",
},
});
// set the auth token for all sub classes
nile.authToken = nile.developer.authToken;
// create a user
await nile.user
.createUser({
loginInfo: {
email: "anon@anon.com",
password: "secret",
},
})
.catch((error) => console.error(error));
const user = await nile.getUser({ id: 1 });
// log created user to console
console.log(user);Contributing
Prereq
brew install yarnyarn set version berryCommands
To run:
yarn build
yarn startThis builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.
To do a one-off build, use npm run build or yarn build.
To run tests, use npm test or yarn test.
Configuration
Code quality is set up for you with prettier, husky, and lint-staged. Adjust the respective fields in package.json accordingly.
Tests
Tests are set up to run with yarn test.
1.0.0
2 years ago
1.0.0-alpha.202
2 years ago
1.0.0-alpha.201
2 years ago
1.0.0-alpha.200
2 years ago
1.0.0-alpha.199
2 years ago
1.0.0-alpha.198
2 years ago
1.0.0-alpha.197
2 years ago
1.0.0-alpha.196
2 years ago
1.0.0-alpha.195
2 years ago