Create a .env.local
file with a session password that is at least 64 characters long
SESSION_PASSWORD=<at least 64 long random string of characters without spaces>
It runs with sqlite. And the DB should be create automatically. To ensure that ON DELETE CASCADE works, turn on the corresponding pragma
PRAGMA foreign_keys = ON;
To create a migration, run
npx drizzle-kit generate:sqlite --schema=src/lib/server/schema.ts --out=src/lib/server/migrations
To install all dependencies, pick one of
npm install
pnpm install
yarn
Once you've installed all dependencies, start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.