Production-grade Next.js 14 application for street-business analytics (inventory, customers, transactions, and profitability) with PostgreSQL-backed data workflows.
- Presentation: Next.js App Router pages and UI components in
app/+components/. - Application layer: Orchestration logic and helper hooks in
hooks/. - Domain + infrastructure: Shared business utilities and data adapters in
lib/anddb/. - Styling/UI system: Tailwind CSS with shadcn/ui primitives.
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- PostgreSQL
- ESLint + Prettier + Husky + lint-staged
- GitHub Actions (CI + deployment)
- Node.js 20+
- npm 10+
- PostgreSQL connection string
npm ci
cp .env.example .env.localConfigure .env.local with required values such as DATABASE_URL.
npm run dev # local server
npm run lint # eslint checks
npm run lint:fix # eslint autofix
npm run typecheck # tsc --noEmit
npm run test # node test runner
npm run build # production build
npm run format # prettier write
npm run format:check # prettier checkGitHub Actions workflows:
CI: runs lint, typecheck, tests, and build on pull requests and pushes tomain.Branch Protection Checks: enforces PR title format and blocks draft PRs from passing checks.Vercel Deploy: deploys preview builds for PRs and production builds formain.
Recommended branch protection for main:
- Require PR before merge
- Require status checks:
Lint, Typecheck, Test, BuildandPR guardrails - Require up-to-date branches before merge
Vercel deployment details and required secrets are documented in docs/deployment-vercel.md.
- Ownership:
.github/CODEOWNERS - Security reporting:
SECURITY.md - Contributor support:
SUPPORT.md - License:
LICENSE