My personal Nextjs + Postgresql + Drizzle (with postgresql driver)
  • TypeScript 80.2%
  • JavaScript 19%
  • CSS 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bert093 d76cdace1f
All checks were successful
/ test (push) Successful in 5s
feat: add auto refresh for realtime message list
File Changed/Added:
- /src/app/autorefresh.tsx
- /src/app/page.tsx

Add a client-side AutoRefresh component that calls router.refresh() on a
configurable interval (set to 1000 ms).
2026-09-30 22:42:14 +08:00
.forgejo/workflows ci: add forgejo runner workflow 2026-09-16 22:30:46 +08:00
src feat: add auto refresh for realtime message list 2026-09-30 22:42:14 +08:00
.gitignore chore: init nextjs project 2026-09-05 19:20:46 +08:00
eslint.config.mjs chore: init nextjs project 2026-09-05 19:20:46 +08:00
next.config.ts chore: init nextjs project 2026-09-05 19:20:46 +08:00
package-lock.json chore(deps): update next, eslint-config-next, and @types/node 2026-09-30 22:25:36 +08:00
package.json chore(deps): update next, eslint-config-next, and @types/node 2026-09-30 22:25:36 +08:00
postcss.config.mjs chore: init nextjs project 2026-09-05 19:20:46 +08:00
README.md docs: add environment variable configuration 2026-09-30 22:34:30 +08:00
tsconfig.json chore: init nextjs project 2026-09-05 19:20:46 +08:00

Nextjs PostgreSQL Drizze Project

Requirements

Make sure you have the following installed on your system:

Git (2.55.0 or newer)
Node.js (v24.20.0 LTS or newer)
Docker/Podman (Optional)

How To Run This Project

  1. Clone repository
git clone http://URL/bert093/Nextjs-Postgresql-Drizzle.git
cd cd Nextjs-Postgresql-Drizzle
  1. Install package/dependency:
npm i # (or bun install)
  1. Run the development server:
npm run dev
  1. Environment Variable
# .env file
# postgresql://[user]:[password]@[host]:[port]/[database_name]
DATABASE_URL=postgresql://johndb:postgrepass@100.79.18.69:5432/mydb

TechStack & Tools

  • Next.js
  • Tailwind CSS
  • Typescript
  • Node.js
  • Docker/Podman
  • postgres.js
  • Drizzle ORM