{"id":50792694,"url":"https://github.com/openshiporg/openfront-coffeeshop","last_synced_at":"2026-06-12T12:02:01.570Z","repository":{"id":360281546,"uuid":"1219907807","full_name":"openshiporg/openfront-coffeeshop","owner":"openshiporg","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-25T18:22:20.000Z","size":376,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-25T20:26:16.814Z","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/openshiporg.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":null,"dco":null,"cla":null}},"created_at":"2026-04-24T10:45:28.000Z","updated_at":"2026-05-25T18:22:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/openshiporg/openfront-coffeeshop","commit_stats":null,"previous_names":["openshiporg/openfront-coffeeshop"],"tags_count":null,"template":false,"template_full_name":"junaid33/next-keystone-starter","purl":"pkg:github/openshiporg/openfront-coffeeshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshiporg%2Fopenfront-coffeeshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshiporg%2Fopenfront-coffeeshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshiporg%2Fopenfront-coffeeshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshiporg%2Fopenfront-coffeeshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openshiporg","download_url":"https://codeload.github.com/openshiporg/openfront-coffeeshop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshiporg%2Fopenfront-coffeeshop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34243053,"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-12T12:01:26.393Z","updated_at":"2026-06-12T12:01:59.306Z","avatar_url":"https://github.com/openshiporg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js + KeystoneJS Starter\n\nA modern full-stack application combining Next.js 15 with KeystoneJS 6, featuring admin dashboard implementation and sophisticated role-based permissions.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjunaid33%2Fnext-keystone-starter%2F\u0026stores=[{\"type\"%3A\"postgres\"}])\n\n[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/TK5wC1?referralCode=I_tWSs)\n\n## Architecture Overview\n\nThis project features a **modern admin architecture** with:\n\n- **Backend**: KeystoneJS 6 providing GraphQL API, authentication, and database operations\n- **Frontend**: Custom Next.js admin dashboard with enhanced UI components\n- **Image Support**: S3-compatible image storage and management \n\n## Tech Stack\n\n### Frontend\n- **Next.js 15** with App Router\n- **React 19** with TypeScript\n- **Radix UI** primitives for accessible components\n- **Tailwind CSS 4** for styling\n- **Remix Icons** (@remixicon/react) for icons\n- **SWR** for client-side data fetching\n- **TipTap** for rich text editing\n- **React Hook Form** for form management\n- **Zod** for schema validation\n\n### Backend\n- **KeystoneJS 6** for GraphQL API and admin interface\n- **Prisma ORM** for database operations\n- **GraphQL Yoga** for GraphQL server\n- **PostgreSQL** database\n- **S3-compatible storage** for image management\n\n### Key Features\n- **Role-based access control** with granular permissions\n- **Dynamic field controllers** with conditional behavior\n- **Rich text editing** with document fields\n- **Relationship management** with inline editing capabilities\n- **Image upload and management** with S3 storage\n- **Inline create/edit components** for seamless UX\n- **Advanced filtering system** for all field types\n- **Responsive design** with mobile support\n\n## Getting Started\n\n### Prerequisites\n- Node.js 18+ \n- PostgreSQL database\n\n### Setup\n\n1. **Clone and install dependencies:**\n   ```bash\n   git clone https://github.com/junaid33/next-keystone-starter\n   cd next-keystone-starter\n   npm install\n   ```\n\n2. **Configure environment variables:**\n   ```bash\n   cp env.example .env\n   ```\n   \n   Update `.env` with your database configuration:\n   ```env\n   DATABASE_URL=postgresql://username:password@localhost:5432/database_name\n   SESSION_SECRET=your-super-secret-session-key-change-this-in-production\n   ```\n\n3. **Start development server:**\n   ```bash\n   npm run dev\n   ```\n\n   This will:\n   - Build KeystoneJS schema\n   - Run database migrations\n   - Start Next.js development server with Turbopack\n\n4. **Access the application:**\n   - Frontend: [http://localhost:3000](http://localhost:3000)\n   - Dashboard: [http://localhost:3000/dashboard](http://localhost:3000/dashboard)\n   - GraphQL API: [http://localhost:3000/api/graphql](http://localhost:3000/api/graphql)\n\n## Development Commands\n\n- `npm run dev` - Build Keystone + migrate + start Next.js dev server\n- `npm run build` - Build Keystone + migrate + build Next.js for production\n- `npm run migrate:gen` - Generate and apply new database migrations\n- `npm run migrate` - Deploy existing migrations to database\n- `npm run lint` - Run ESLint\n\n## API Endpoints\n\n### GraphQL API\n- **Endpoint**: `/api/graphql`\n- **Features**: Full CRUD operations, relationships, authentication\n- **Playground**: Available in development mode\n\n## Data Models\n\n### Core Models\n- **User** - Authentication and user management\n- **Role** - Role-based access control\n- **Todo** - Example content model with relationships\n- **TodoImage** - Image management for Todo items with S3 storage\n\n### Permission System\nSophisticated role-based permissions including:\n- `canAccessDashboard`, `canManagePeople`, `canManageRoles`\n- `canCreateTodos`, `canManageAllTodos`\n- `canSeeOtherPeople`, `canEditOtherPeople`\n\n## Project Structure\n\n```\n├── app/                    # Next.js App Router\n│   ├── api/\n│   │   └── graphql.ts     # GraphQL API endpoint\n│   └── dashboard/         # Admin dashboard pages\n├── features/\n│   ├── keystone/          # Backend configuration\n│   │   ├── models/        # Keystone list definitions\n│   │   ├── access.ts      # Permission logic\n│   │   └── mutations/     # Custom GraphQL mutations\n│   └── dashboard/         # Admin interface implementation\n│       ├── actions/       # Server actions\n│       ├── components/    # Reusable UI components\n│       ├── screens/       # Page-level components\n│       └── views/         # Field type implementations\n├── keystone.ts            # KeystoneJS configuration\n└── schema.prisma          # Database schema\n```\n\n## Development Notes\n\n- **GraphQL endpoint** available at `/api/graphql`\n- **Field implementations** follow KeystoneJS controller patterns\n- **Permission checks** are integrated throughout the UI layer\n- **Server actions** used for data mutations in dashboard components\n- **Inline editing** components provide seamless UX for relationship management\n- **Image uploads** configured for S3-compatible storage\n- **Advanced filtering** supports all field types including documents, JSON, and images\n\n## Deployment\n\nThe application can be deployed to any platform supporting Node.js and PostgreSQL:\n\n1. Set up PostgreSQL database\n2. Configure environment variables\n3. Run `npm run build`\n4. Run `npm start`\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Run tests and linting\n5. Submit a pull request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenshiporg%2Fopenfront-coffeeshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenshiporg%2Fopenfront-coffeeshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenshiporg%2Fopenfront-coffeeshop/lists"}