Skip to content

Commit

Permalink
refactor: Fix formatting in middleware.ts, route.ts, loading.tsx, and…
Browse files Browse the repository at this point in the history
… use-system-theme.ts

feat: Add next-auth middleware and configure profile route

chore: Update TypeScript target to ES2020

feat: Add database configuration and connection

chore: Add Docker Compose configuration for database

feat: Add requireAuth utility function

feat: Add migration script and meta journal entry

feat: Add schema for sessions and users

chore: Update authentication configuration

chore: Update server environment configuration

feat: Add schema for accounts

feat: Add profile page with authentication check

chore: Update package dependencies

feat: Add initial migration script for material_phalanx
  • Loading branch information
iceship committed Sep 19, 2024
1 parent 2bc3cba commit 2246dc7
Show file tree
Hide file tree
Showing 19 changed files with 1,689 additions and 69 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env
.env*.local

# vercel
Expand All @@ -34,3 +35,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

docker-data
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
db:
image: postgres:16.4
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
ports:
- ${DB_PORT}:5432
volumes:
- ./docker-data/db:/var/lib/postgresql/data
12 changes: 12 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "drizzle-kit";

import { env } from "@/env/server";

export default defineConfig({
schema: "./src/db/schema/index.ts",
dialect: "postgresql",
out: "./src/db/migrations",
dbCredentials: {
url: env.DATABASE_URL,
},
});
Loading

0 comments on commit 2246dc7

Please sign in to comment.