Introduction
Use the Adamite SDK to connect to your Adamite server.
Install the SDK
yarn add @adamite/sdk
Initialize the SDK
import adamite, {
AuthPlugin,
DatabasePlugin,
FunctionsPlugin,
} from "@adamite/sdk";
adamite()
.use(AuthPlugin)
.use(DatabasePlugin)
.use(FunctionsPlugin)
.initializeApp({
url: "http://localhost:9000",
apiKey: "your_api_key",
});
Once everything is configured properly, you'll be able to see these lines logged in your client's console...
⚡ [grid.auth] connected
⚡ [grid.functions] connected
⚡ [grid.database] connected
Last updated
Was this helpful?