https://github.com/nikitavoloboev/drizzle-test
https://github.com/nikitavoloboev/drizzle-test
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikitavoloboev/drizzle-test
- Owner: nikitavoloboev
- Created: 2024-12-06T23:07:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-07T00:18:34.000Z (about 1 year ago)
- Last Synced: 2025-08-17T12:52:51.180Z (5 months ago)
- Language: TypeScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Setup
Need this `.env`:
```
DB_FILE_NAME=file:../db/drizzle.db
```
Then:
```
bun i
```
## Run
```
bun dev
```
To run [scripts/run.ts](scripts/run.ts).
## Make changes to schema
Edit [src/schema.ts](src/schema.ts), then:
```
bunx drizzle-kit generate && bunx drizzle-kit migrate
```