Repository
The Worker source code is available at: Repository: https://github.com/enhancedai-com/Flux-Prompt-WorkerPrerequisites
Before you begin, ensure you have:- Node.js (v18 or higher)
- pnpm package manager
- Temporal server running (see Temporal setup)
- Access to the required environment variables
Installation
Clone the repository and install dependencies:Development commands
Build
Compile the TypeScript code:dist directory.
Start
Run the compiled application:Development mode
Start the application in watch mode for automatic reloading on file changes:Debug mode
Start with debugging enabled and watch mode:Production mode
Run the production build:dist/main without watch mode.
Code quality
Format code
Format all files using Biome:Lint and fix
Run the linter and automatically fix issues:Development workflow
- Clone the repository and install dependencies
- Set up environment variables (see configuration)
- Start Temporal server if running locally
- Run in development mode:
pnpm run start:dev - Make changes to the codebase
- Format and lint before committing:
pnpm run format && pnpm run lint:fix - Build to verify compilation:
pnpm run build