Node.js SDK Installation
Installing and configuring the Node.js SDK.
Prerequisites
- Node.js 18+ or 20+
- npm, pnpm, or yarn
Installation
npm install @easy/appserver-sdk
Or with pnpm:
pnpm add @easy/appserver-sdk
Project Setup
TODO: Document recommended project structure:
my-app/
├── src/
│ ├── index.ts # Main app entry
│ ├── lifecycle/ # Lifecycle hooks
│ │ ├── onCreate.ts
│ │ ├── onInstall.ts
│ │ └── ...
│ ├── services/ # Business logic
│ └── types/ # TypeScript types
├── package.json
├── tsconfig.json
└── .env
TypeScript Configuration
TODO: Add recommended tsconfig.json
Environment Variables
TODO: Document required environment variables for development:
- AppServer connection URL
- Database connection (if used)
- Certificate paths
Module Format
The SDK supports both ESM and CommonJS:
ESM (recommended)
import { createApp } from '@easy/appserver-sdk';
CommonJS
const { createApp } = require('@easy/appserver-sdk');
Development Workflow
TODO: Document development setup:
- Install SDK
- Create app structure
- Implement lifecycle hooks
- Run locally with AppServer
- Debug and iterate
Next Steps
- Lifecycle Hooks - Implement app lifecycle
- Manifest Building - Create app manifest