{"id":25935317,"url":"https://github.com/abidalwassie/next-blog","last_synced_at":"2025-03-04T01:34:06.233Z","repository":{"id":280154403,"uuid":"941095162","full_name":"AbidAlWassie/next-blog","owner":"AbidAlWassie","description":"A modern, full-stack blogging platform with custom wildcard domains. example: yoursite.frostcore.tech","archived":false,"fork":false,"pushed_at":"2025-03-03T09:57:26.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T10:24:51.184Z","etag":null,"topics":["backend","blog","multi-tenant","next-auth","nextjs","postgresql","prisma","react","shadcn-ui","subdomain","tailwindcss","typescript","wildcard-domains"],"latest_commit_sha":null,"homepage":"https://frostcore.tech","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbidAlWassie.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}},"created_at":"2025-03-01T13:29:04.000Z","updated_at":"2025-03-03T09:57:30.000Z","dependencies_parsed_at":"2025-03-01T16:41:20.516Z","dependency_job_id":null,"html_url":"https://github.com/AbidAlWassie/next-blog","commit_stats":null,"previous_names":["abidalwassie/next-blog-app","abidalwassie/next-blog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fnext-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fnext-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fnext-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbidAlWassie%2Fnext-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbidAlWassie","download_url":"https://codeload.github.com/AbidAlWassie/next-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241768412,"owners_count":20017117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backend","blog","multi-tenant","next-auth","nextjs","postgresql","prisma","react","shadcn-ui","subdomain","tailwindcss","typescript","wildcard-domains"],"created_at":"2025-03-04T01:34:05.494Z","updated_at":"2025-03-04T01:34:06.222Z","avatar_url":"https://github.com/AbidAlWassie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Next Blog - Multi-Tenant Blogging Platform\n\nA modern, full-stack blogging platform built with **Next.js**, **Prisma**, **PostgreSQL**, and **TypeScript**. This platform allows users to create and manage multiple blogs, each with its own custom subdomain (e.g., `mysite.frostcore.tech`). Perfect for developers, content creators, and businesses looking to manage multiple blogs under one roof.\n\n---\n\n## 🔥 Techstack\n\n[\u003cimg src=\"https://img.shields.io/badge/Next.js-15-black?style=flat\u0026logo=next.js\u0026logoColor=white\u0026labelColor=black\u0026color=black\u0026borderRadius=20\" height=\"30\"\u003e](https://nextjs.org/)\n[\u003cimg src=\"https://img.shields.io/badge/TypeScript-5.8-blue?style=flat\u0026logo=typescript\u0026logoColor=white\u0026labelColor=blue\u0026color=blue\u0026borderRadius=20\" height=\"30\"\u003e](https://www.typescriptlang.org/)\n[\u003cimg src=\"https://img.shields.io/badge/Prisma-6.4-2D3748?style=flat\u0026logo=prisma\u0026logoColor=white\u0026labelColor=2D3748\u0026color=2D3748\u0026borderRadius=20\" height=\"30\" /\u003e](https://www.prisma.io/)\n[\u003cimg src=\"https://img.shields.io/badge/Tailwind%20CSS-4.0-38B2AC?style=flat\u0026logo=tailwind-css\u0026logoColor=white\u0026labelColor=38B2AC\u0026color=38B2AC\u0026borderRadius=20\" alt=\"TailwindCSS\" height=\"30\" /\u003e](https://tailwindcss.com/)\n[\u003cimg src=\"https://img.shields.io/badge/PostgreSQL-15-316192?style=flat\u0026logo=postgresql\u0026logoColor=white\u0026labelColor=316192\u0026color=316192\u0026borderRadius=20\" height=30\u003e](https://www.postgresql.org/)\n[\u003cimg src=\"https://github.com/vquix/svg-badges/blob/main/NextAuth%20V5.0-081b26.svg\" height=30\u003e](https://next-auth.js.org/)\n\n---\n\n## ✨ Features\n\n### 🏢 **Multi-Tenant Architecture**\n\n- Create and manage multiple blogs under one account.\n- Each blog gets a unique subdomain (e.g., `mysite.frostcore.tech`).\n- Isolated content and settings for each blog.\n\n### 🔐 **Authentication \u0026 Authorization**\n\n- Secure authentication with **NextAuth.js**.\n- Supports email/password, Google, and GitHub login.\n- Role-based access control for managing blogs and posts.\n\n### 📝 **Blog Management**\n\n- Create, edit, and publish blog posts with a rich text editor.\n- Save drafts and schedule posts for later.\n- Manage multiple blogs from a single dashboard.\n\n### 🎨 **Modern UI/UX**\n\n- Built with **Tailwind CSS** and **shadcn/ui** for a sleek, responsive design.\n- Dark/Light mode support.\n- Customizable themes and components.\n\n### 🛠️ **Technical Features**\n\n- **Next.js** for server-side rendering and API routes.\n- **Prisma** for database management and migrations.\n- **PostgreSQL** as the primary database.\n- **TypeScript** for type-safe development.\n- **Turbopack** for faster builds and development.\n\n---\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- **Node.js 18+**\n- **PostgreSQL** (running locally or remotely)\n- **pnpm** (recommended package manager)\n\n### Installation\n\n1. Fork \u0026 Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/next-blog.git\n   cd next-blog\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   pnpm install\n   ```\n\n3. Set up your environment variables:\n   Create a `.env` file in the root directory and add the following:\n\n   ```env\n   DATABASE_URL=\"postgresql://username:password@localhost:5432/your_database_name?schema=public\"\n   GOOGLE_CLIENT_ID=\"your_google_client_id\"\n   GOOGLE_CLIENT_SECRET=\"your_google_client_secret\"\n   GITHUB_CLIENT_ID=\"your_github_client_id\"\n   GITHUB_CLIENT_SECRET=\"your_github_client_secret\"\n   NEXTAUTH_URL=\"http://localhost:3000\" or \"your_domain.com\" for production\n   NEXTAUTH_SECRET=\"run: npx auth secret or run: openssl rand -base64 32\"\n\n   RESEND_API_KEY=\"your_resend_api_key\"\n   # EMAIL_SERVER_PASSWORD=\"your_resend_api_key\" same as RESEND_API_KEY\n   EMAIL_SERVER_USER=resend\n   EMAIL_SERVER_HOST=smtp.resend.com\n   EMAIL_SERVER_PORT=465\n   EMAIL_FROM=onboarding@resend.dev\n\n   BASE_DOMAIN=\"localhost:3000\" # for development\n   # BASE_DOMAIN=\"your_domain.com\" # for production\n   PROTOCOL=\"http://\" # for development\n   # PROTOCOL=\"https://\" # for production\n   ```\n\n4. Run database migrations:\n\n   ```bash\n   pnpm prisma migrate dev --name init\n   ```\n\n5. Seed the database (optional):\n\n   ```bash\n   pnpm seed\n   ```\n\n6. Start the development server:\n\n   ```bash\n   pnpm dev\n   ```\n\n7. Open your browser and navigate to `http://localhost:3000`.\n\n---\n\n## 🛠️ Scripts\n\n- **`pnpm dev`**: Start the development server with Turbopack.\n- **`pnpm build`**: Generate Prisma client and build the project.\n- **`pnpm start`**: Start the production server.\n- **`pnpm lint`**: Run ESLint to check for code issues.\n- **`pnpm prisma studio`**: Open Prisma Studio to visualize and edit the database.\n- **`pnpm prisma generate`**: Generate the Prisma client.\n- **`pnpm prisma db push`**: Push the Prisma schema state to the database.\n\n---\n\n## 🧩 Tech Stack\n\n- **Frontend**: Next.js, React, Tailwind CSS, shadcn/ui\n- **Backend**: Next.js API Routes, Server Actions\n- **Database \u0026 Authentication**: PrismaORM, PostgreSQL, NextAuth\n- **Utilities**: Zod (validation), UUID (unique IDs), Resend (email)\n\n---\n\n## 📂 Project Structure\n\n```\nnext-blog/\n├── app/                  # Next.js app router\n│   └── ...\n├── components/           # Reusable UI components\n├── components.json       # Components configuration\n├── lib/                  # Utility functions\n├── middleware.ts         # Middleware configuration\n├── prisma/               # Prisma schema and migrations\n├── public/               # Static assets\n├── README.md             # Project README file\n├── styles/               # Global styles\n│   └── ...\n├── .env                  # Environment variables\n├── .env.example          # Example env\n├── .gitignore            # Git ignore file\n├── next.config.ts        # Next.js configuration\n├── next-env.d.ts         # Next.js environment types\n├── tsconfig.json         # TypeScript configuration\n├── eslint.config.mjs     # ESLint configuration\n├── postcss.config.mjs    # PostCSS configuration\n├── package.json          # Project dependencies\n├── pnpm-lock.yaml        # pnpm lock file\n```\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! If you'd like to contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Open a pull request.\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nKeep blogging! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabidalwassie%2Fnext-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabidalwassie%2Fnext-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabidalwassie%2Fnext-blog/lists"}