{"id":50804220,"url":"https://github.com/saigontechnology/nextjs-fullstack-template","last_synced_at":"2026-06-12T23:30:41.026Z","repository":{"id":362621687,"uuid":"1260007933","full_name":"saigontechnology/nextjs-fullstack-template","owner":"saigontechnology","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-05T04:47:07.000Z","size":138,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-05T07:23:38.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saigontechnology.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-05T04:23:05.000Z","updated_at":"2026-06-05T04:47:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/saigontechnology/nextjs-fullstack-template","commit_stats":null,"previous_names":["saigontechnology/nextjs-fullstack-template"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/saigontechnology/nextjs-fullstack-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saigontechnology%2Fnextjs-fullstack-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saigontechnology%2Fnextjs-fullstack-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saigontechnology%2Fnextjs-fullstack-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saigontechnology%2Fnextjs-fullstack-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saigontechnology","download_url":"https://codeload.github.com/saigontechnology/nextjs-fullstack-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saigontechnology%2Fnextjs-fullstack-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34266915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-12T23:30:40.379Z","updated_at":"2026-06-12T23:30:41.011Z","avatar_url":"https://github.com/saigontechnology.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fullstack Next.js Template\n\nA production-ready fullstack template with **Next.js 15**, **Tailwind CSS v4**, **shadcn/ui**, **SQLite**, and **Docker**.\n\n## Tech Stack\n\n| Layer | Technology |\n|-------|-----------|\n| Framework | Next.js 15 (App Router, Turbopack) |\n| Styling | Tailwind CSS v4 + shadcn/ui |\n| Database | SQLite (via better-sqlite3 + Drizzle ORM) |\n| Language | TypeScript (strict mode) |\n| Deployment | Docker (multi-stage, standalone output) |\n\n## Project Structure\n\n```\nsrc/\n├── actions/         # Server Actions (type-safe DB operations)\n│   ├── user.actions.ts\n│   └── post.actions.ts\n├── app/\n│   ├── api/         # REST API routes\n│   │   ├── users/route.ts\n│   │   └── posts/route.ts\n│   ├── layout.tsx   # Root layout (ThemeProvider, fonts, Toaster)\n│   ├── page.tsx     # Dashboard with CRUD demo\n│   └── globals.css  # Tailwind v4 + shadcn theme\n├── components/\n│   ├── ui/          # shadcn/ui components\n│   ├── user-form.tsx\n│   ├── post-form.tsx\n│   ├── user-list.tsx\n│   ├── post-list.tsx\n│   └── delete-button.tsx\n├── db/\n│   ├── schema.ts    # Drizzle ORM schema (users, posts)\n│   ├── index.ts     # Database connection\n│   ├── migrate.ts   # Migration runner\n│   └── seed.ts      # Seed script\n└── lib/utils.ts     # Utility functions (cn helper)\n```\n\n## Getting Started\n\n### Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Generate migration files after schema changes\nnpm run db:generate\n\n# Run migrations\nnpm run db:migrate\n\n# Seed sample data\nnpm run db:seed\n\n# Start dev server\nnpm run dev\n```\n\n### Docker Deployment\n\n```bash\n# Build the app image\ndocker build -t fullstack-app .\n\n# Build and run migrations\ndocker build -t fullstack-migrate -f Dockerfile.migrate .\ndocker run --rm -v app-data:/data fullstack-migrate\n\n# Seed the database (optional)\ndocker run --rm -v app-data:/data --entrypoint \"\" fullstack-app npm run db:seed\n\n# Run the app\ndocker run -p 3000:3000 -v app-data:/data fullstack-app\n```\n\n## Database Commands\n\n| Command | Description |\n|---------|-------------|\n| `npm run db:generate` | Generate SQL migration from schema changes |\n| `npm run db:migrate` | Apply pending migrations |\n| `npm run db:seed` | Insert sample data |\n| `npm run db:setup` | Migrate + seed in one command |\n\n## API Endpoints\n\n- `GET/POST /api/users` — List or create users\n- `DELETE /api/users?id=1` — Delete a user\n- `GET/POST /api/posts` — List or create posts\n- `DELETE /api/posts?id=1` — Delete a post\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaigontechnology%2Fnextjs-fullstack-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaigontechnology%2Fnextjs-fullstack-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaigontechnology%2Fnextjs-fullstack-template/lists"}