The `create-entity-app-server` package, currently at version 0.8.1, serves as a command-line tool for scaffolding new application server projects based on Fastify and integrated with Entity Server. It provides an opinionated project structure designed for rapid development and clear separation of concerns. The core server functionalities, including authentication, CRUD operations for entities, and file storage, are encapsulated within a pre-compiled `system.js` bundle, keeping the server's foundational logic abstracted. Developers are primarily expected to implement business logic, custom API routes, entity event hooks, and background schedules within the `app/` directory, written in TypeScript. This package distributes a template that sets up necessary files, configurations, and scripts, allowing developers to immediately run a development server. While the package itself is a scaffolder, the generated project features an active development cadence typical of `0.x` versions. Its key differentiators include a 'hidden' core for reduced boilerplate, a strong focus on customizability via TypeScript, and predefined alias rules (`@system/api`, `@app/*`) to guide module imports within the generated codebase.
npm install create-entity-app-serverNo compatibility data collected yet for this library.
Initializes a new Entity App Server project, installs dependencies, and starts the development server.
Ensure `config.json` is correctly derived from `config.example.json` and that build-specific fields are applied only in the deployment configuration, or removed during a build process if they originate from source `config.json`.
Upgrade your Node.js environment to version 18 or newer. Tools like `nvm` (Node Version Manager) are highly recommended for managing multiple Node.js versions efficiently.
For consuming system features in `app/` code, use `import { somePublicApi } from '@system/api'`. Avoid `import { internalModule } from '@system/some-internal-path'` to maintain stability and compatibility.Update your Node.js environment to version 18 or higher. If you have multiple Node.js versions installed, ensure the correct version is active in your terminal session (e.g., `nvm use 18`).
Ensure you have navigated into your project directory (e.g., `cd my-app`) after running `npm create entity-app-server`. Then, run `npm install` followed by `npm run dev`. Verify that `system.js` exists in your project's root folder.
No dependency data recorded yet.