create-adorex
v1.4.14
Published
Scaffold Express + TypeScript + Prisma + SQLite apps
Maintainers
Readme
create-adorex
Bootstrap an API-ready backend starter with Express, TypeScript, Prisma, and SQLite through libsql!
Usage
You can use npm, pnpm, yarn, bun, or any other package manager that pulls from npm
npm create adorex
pnpm create adorex
yarn create adorex
bun create adorexIf you would like to create the app directly in the dir you are in run
npm create adorex .
pnpm create adorex .
yarn create adorex .
bun create adorex .Prefer non-interactive usage? Pass a name directly:
npm create adorex my-app
pnpm create adorex my-app
yarn create adorex my-app
bun create adorex my-appFlags go after --:
npm create adorex@latest my-app -- --template express-sqlite
npm create adorex@latest my-app -- --force # overwrite existing directory
npm create adorex@latest -- --help
npm create adorex@latest -- --version| Flag | Description |
| ------------------- | ----------------------------------------------- |
| --template <name> | Template to use (default: express-sqlite) |
| --force | Overwrite target directory if it already exists |
| -v, --version | Print version |
| -h, --help | Print help |
Project Layout
my-app/
src/
index.ts
utils/
prisma.ts
prisma/
schema.prisma
prisma.config.ts
tsconfig.json
.envAfter generation:
- Install the dependencies:
npm installEdit
prisma/schema.prismato match your app's data model.- Add your own models, fields, and relations before you generate the client.
Create your first migration:
npx prisma migrate dev --name init- Generate Prisma client code:
npx prisma generate- Start the dev server:
npm run devScripts
npm run dev- starts the dev server in watch modenpm run typecheck- runs TypeScript checks onlynpm run build- compiles todist/npm run start- runs the compiled app
Environment
Default .env values:
PORT=3000
DATABASE_URL="file:./dev.db"Stack
- Node.js:
^22.12 || ^24.0 - Express:
^5.2.1 - TypeScript:
^5.9.2 - Prisma ORM:
prisma ^7.5.0and@prisma/client ^7.5.0 - SQLite via libsql:
@libsql/client ^0.17.0and@prisma/adapter-libsql ^7.5.0 - Dev tooling:
tsx ^4.20.5anddotenv ^16.4.7
If you enjoyed the package, consider buying me a virtual coffee ☕ @ buymeacoffee.com
