# Start with app code

You have two ways to start a new Comind.work app: scaffold a blank one from the template generator, or copy an existing app and rename it. Both leave you with a complete app package in your project that you can edit and deploy.

## Option A: Scaffold a blank app[​](#option-a-scaffold-a-blank-app "Direct link to Option A: Scaffold a blank app")

The `npm-init-comind` generator creates the standard [package structure](/developer-guide/app-architecture/package-structure.md) - `fields/`, `actions/`, `views/`, `settings/`, `package.json`, `typings.ts` - ready to fill in:

```
npm init comind
```

The generator prompts for an app name, publishing alias, and target directory, then writes a blank but valid app you can immediately install.

## Option B: Copy from the sample apps package[​](#option-b-copy-from-the-sample-apps-package "Direct link to Option B: Copy from the sample apps package")

When you want a head start instead of a blank template, copy from the sample apps package - it ships the full source of every standard platform app:

```
npm i @comind/workspace-all
cp -r node_modules/@comind/workspace-all/app-task apps-custom/app-org-task
```

Repeat for any other apps you want as starting points:

```
cp -r node_modules/@comind/workspace-all/app-schedule apps-custom/app-org-schedule
cp -r node_modules/@comind/workspace-all/app-itsm-ticket apps-custom/app-org-ticket
```

After copying, rename the folder and update `package.json` -> `name` and `comindApp.publishingAlias` to your own values - the naming convention is `app-<brand>-<entity>` (see [package structure](/developer-guide/app-architecture/package-structure.md) for the rules).

The package requires access to the Comind.work private npm registry, configured via `.npmrc`. See [environment variables](/developer-guide/getting-started/environment-variables.md#npmrc) if `npm i` cannot find the package.

## Related[​](#related "Direct link to Related")

* [CLI reference](/developer-guide/reference/cli-reference.md) - syntax for `install`, `build`, `dump`, and other commands
* [Package structure](/developer-guide/app-architecture/package-structure.md) - what each directory and file in the app does
