Welcome to Juno's File Service! This guide will walk you through the steps required to integrate Juno’s file microservice into your project. By following this documentation, your team will be able to set up, configure, and manage files directly through Juno’s SDK.
This guide will focus solely on the File Service SDK interactions. If you are interested in interacting with the Juno API via Rest, please refer to the Juno Documentation. When a new release of Juno is deployed, all documentation will be automatically regenerated to ensure it stays up to date.
npm install juno-sdk # for projects using npm
pnpm add juno-sdk # for projects using pnpm
yarn add juno-sdk # for projects using yarn
bun install juno-sdk # for projects using bun
import juno from "juno-sdk";
// Call this somewhere in your program before using any of Juno's services
juno.init({
apiKey: "<your api key>",
baseUrl: "<base url of running juno instance>"
});
// We can then call any of the service methods, e.g. email, file services
Please take a moment to review the model structure of the File Service. The File Service organizes files using the following hierarchy:
.png)
Begin by setting up the file service configuration for your project. This involves creating a file config object that includes your project ID and target environment, which will then be saved to the Juno Database.