Prérequis
Node.js 20+
Version LTS requise par la plateforme
npm, pnpm ou yarn
Package manager au choix
Compte Luneo
Installation via NPM
1. Installer le package:
npm install @luneo/sdk
Ou avec pnpm:
pnpm add @luneo/sdk
Ou avec yarn:
yarn add @luneo/sdk
Vérification
Créez un fichier test pour vérifier l'installation:
// test-luneo.js
import { LuneoClient } from '@luneo/sdk';
const client = new LuneoClient({
apiKey: process.env.LUNEO_API_KEY
});
logger.info('✅ Luneo SDK installé!');
logger.info('Version:', client.version);Exécutez:
node test-luneo.js
Dépendances Recommandées
React 18+ (pour composants UI)
Next.js 14+ (recommandé)
TypeScript (types inclus)