Flexbiz Server is the backend service for the Flexbiz business application, providing API endpoints for business operations. The current stable version is 12.6.8. It is released on an irregular cadence with breaking changes between major versions. Key differentiators: built for the Flexbiz ecosystem, tightly coupled with the Flexbiz client, and not designed as a general-purpose server framework. Underlying dependencies include Express.js for HTTP handling and Sequelize for ORM, though these may vary by version.
npm install flexbiz-serverVerified import paths — ran on the pinned version, not inferred.
Shows how to import and instantiate FlexbizServer with configuration, including database credentials from environment variables.
Switch to ESM by using import syntax, or downgrade to v9.x if CJS is required.
Replace `server.listen()` with `await server.start()`.
Update config to use `host` property instead of `hostname`. Ensure `host` is provided.
Use named imports like `import { FlexbizServer } from 'flexbiz-server'`.Call `initializeDatabase(config.db)` before `new FlexbizServer(config)`.
Run `npm install flexbiz-server` and ensure the package is in node_modules.
Replace `import FlexbizServer from 'flexbiz-server'` with `import { FlexbizServer } from 'flexbiz-server'`.Use `await server.start()` instead of `server.listen()`.
Ensure `config.db.host` is set to a valid hostname or IP address.