feat(01-02): add data directory, server hooks, and verification page
- Create data/ directory with attachments/ subdirectory and .gitkeep files - Update .gitignore to track .gitkeep but ignore database files - Server hooks initialize database on first request - Page server load fetches entries and creates test entry if none exist - Verification page shows database status, entry count, and recent entries
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -22,5 +22,10 @@ Thumbs.db
|
||||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
|
||||
# Database
|
||||
/data/
|
||||
# Data directory (persistent data)
|
||||
data/*.db
|
||||
data/*.db-wal
|
||||
data/*.db-shm
|
||||
data/attachments/*
|
||||
!data/.gitkeep
|
||||
!data/attachments/.gitkeep
|
||||
|
||||
Reference in New Issue
Block a user