# Lifecycle

The lifecycle layer powers the local RolePrep dashboard, scheduler, application list, learning guides, and generated artifacts.

## Stack

- Express API server
- React dashboard
- SQLite local database
- Playwright/Chromium LinkedIn search worker

## Common Commands

```bash
npm run roleprep:migrate
npm run roleprep:search-batch
npm run roleprep:backfill-keywords
npm run roleprep:submit-approved
npm run dashboard:dev
```

## Local Data

The npm CLI and source checkouts both use the RolePrep data directory for local state:

```
$HOME/.local/share/roleprep/
  roleprep.sqlite
  browser-profiles.json
  browser-profiles/
  linkedin_search/
  output/
```

Set `ROLEPREP_DATA_DIR` only when you intentionally want an isolated data directory for tests or experiments.

The public repo ships example applicant policies and example documents only. Personal policies, CV sources, generated PDFs, browser profiles, and SQLite databases should stay local and ignored.
