platforms

所属分类:快速开发平台
开发工具:TypeScript
文件大小:1119KB
下载次数:0
上传日期:2023-06-07 23:23:59
上 传 者sh-1993
说明:  用于站点生成器和低代码工具的模板。
(A template for site builders and low-code tools.)

文件列表:
.env.example (1410, 2023-07-21)
.eslintrc.json (40, 2023-07-21)
.prettierignore (33, 2023-07-21)
app (0, 2023-07-21)
app\[domain] (0, 2023-07-21)
app\[domain]\[slug] (0, 2023-07-21)
app\[domain]\[slug]\not-found.tsx (864, 2023-07-21)
app\[domain]\[slug]\opengraph-image.tsx (2266, 2023-07-21)
app\[domain]\[slug]\page.tsx (4247, 2023-07-21)
app\[domain]\layout.tsx (3322, 2023-07-21)
app\[domain]\page.tsx (4286, 2023-07-21)
app\api (0, 2023-07-21)
app\api\auth (0, 2023-07-21)
app\api\auth\[...nextauth] (0, 2023-07-21)
app\api\auth\[...nextauth]\route.ts (161, 2023-07-21)
app\api\domain (0, 2023-07-21)
app\api\domain\[slug] (0, 2023-07-21)
app\api\domain\[slug]\verify (0, 2023-07-21)
app\api\domain\[slug]\verify\route.ts (1239, 2023-07-21)
app\api\generate (0, 2023-07-21)
app\api\generate\route.ts (2390, 2023-07-21)
app\api\migrate (0, 2023-07-21)
app\api\migrate\route.ts (1956, 2023-07-21)
app\api\upload (0, 2023-07-21)
app\api\upload\route.ts (682, 2023-07-21)
app\app (0, 2023-07-21)
app\app\(auth) (0, 2023-07-21)
app\app\(auth)\layout.tsx (359, 2023-07-21)
app\app\(auth)\login (0, 2023-07-21)
app\app\(auth)\login\login-button.tsx (2350, 2023-07-21)
app\app\(auth)\login\page.tsx (1448, 2023-07-21)
app\app\(dashboard) (0, 2023-07-21)
app\app\(dashboard)\layout.tsx (441, 2023-07-21)
app\app\(dashboard)\loading.tsx (329, 2023-07-21)
app\app\(dashboard)\page.tsx (1816, 2023-07-21)
app\app\(dashboard)\post (0, 2023-07-21)
app\app\(dashboard)\post\[id] (0, 2023-07-21)
... ...

Platforms Starter Kit

Platforms Starter Kit

The all-in-one starter kit
for building multi-tenant applications.

Introduction · Demo · Deploy Your Own · Guide · Kitchen Sink · Contributing


## Introduction The [Platforms Starter Kit](https://app.vercel.pub/) is a full-stack Next.js app with multi-tenancy and custom domain support. Built with [Next.js App Router](https://nextjs.org/docs/app), [Vercel Postgres](https://vercel.com/storage/postgres) and the [Vercel Domains API](https://vercel.com/docs/rest-api/endpoints#domains). Here's a quick 30-second demo: https://github.com/vercel/platforms/assets/28***6134/bd370257-0c27-4cf5-8a56-28589f36f0ef ## Features 1. **Multi-tenancy:** Programmatically assign unlimited custom domains, subdomains, and SSL certificates to your users using the [Vercel Domains API](https://vercel.com/docs/rest-api/endpoints#domains) 2. **Performance**: Fast & beautiful blog posts cached via [Vercel's Edge Network](https://vercel.com/docs/concepts/edge-network/overview), with the ability to invalidate the cache on-demand (when users make changes) using [Incremental Static Regeneration](https://vercel.com/docs/concepts/next.js/incremental-static-regeneration) + Next.js' `revalidateTag` API 3. **AI Editor**: AI-powered Markdown editor for a Notion-style writing experience powered by [Novel](https://novel.sh/) 4. **Image Uploads**: Drag & drop / copy & paste image uploads, backed by [Vercel Blob](https://vercel.com/storage/blob) 5. **Custom styles**: Custom fonts, 404 pages, favicons, sitemaps for each site via the [Next.js file-based Metadata API](https://nextjs.org/docs/app/api-reference/file-conventions/metadata) 6. **Dynamic OG Cards**: Each blog post comes with a dynamic OG image powered by [@vercel/og](https://vercel.com/docs/concepts/functions/edge-functions/og-image-generation) 7. **Dark Mode**: For a better user experience at night Demo ## Deploy Your Own Deploy your own version of this starter kit with Vercel. [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=Platforms+Starter+Kit&demo-description=A+template+for+site+builders+and+low-code+tools.&demo-url=https%3A%2F%2Fdemo.vercel.pub%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F40JwjdHlPr0Z575MPYbxUA%2Fd5903afc68cb34569a3886293414c37c%2FOG_Image.png&project-name=Platforms+Starter+Kit&repository-name=platforms-starter-kit&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fplatforms&from=templates&env=NEXT_PUBLIC_ROOT_DOMAIN%2CNEXTAUTH_SECRET%2CAUTH_GITHUB_ID%2CAUTH_GITHUB_SECRET%2CAUTH_BEARER_TOKEN%2CPROJECT_ID_VERCEL%2CTEAM_ID_VERCEL%2COPENAI_API_KEY&envDescription=These+environment+variables+are+required+to+run+this+application.&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fplatforms%2Fblob%2Fmain%2F.env.example&stores=%5B%7B%22type%22%3A%22postgres%22%7D%5D) You can also [read the guide](https://vercel.com/guides/nextjs-multi-tenant-application) to learn how to develop your own version of this template. ## What is a multi-tenant application? Multi-tenant applications serve multiple customers across different subdomains/custom domains with a single unified codebase. For example, our demo is a multi-tenant application: - Subdomain: [demo.vercel.pub](http://demo.vercel.pub) - Custom domain: [platformize.co](http://platformize.co) (maps to [demo.vercel.pub](http://demo.vercel.pub)) - Build your own: [app.vercel.pub](http://app.vercel.pub) Another example is [Hashnode](https://vercel.com/customers/hashnode), a popular blogging platform. Each writer has their own unique `.hashnode.dev` subdomain for their blog: - [eda.hashnode.dev](https://eda.hashnode.dev/) - [katycodesstuff.hashnode.dev](https://katycodesstuff.hashnode.dev/) - [akoskm.hashnode.dev](https://akoskm.hashnode.dev/) Users can also map custom domains to their `.hashnode.dev` subdomain: - [akoskm.com](https://akoskm.com/) → [akoskm.hashnode.dev](https://akoskm.hashnode.dev/) With the Platforms Starter Kit, you can offer unlimited custom domains at no extra cost to your customers as a premium feature, without having to worry about custom nameservers or configuring SSL certificates. ## Examples of platforms Vercel customers like [Hashnode](https://vercel.com/customers/hashnode), [Super](https://super.so), and [Cal.com](https://cal.com) are building scalable platforms on top of Vercel and Next.js. There are multiple types of platforms you can build with this starter kit: ### 1. Content creation platforms These are content-heavy platforms (blogs) with simple, standardized page layouts and route structure. > “With Vercel, we spend less time managing our infrastructure and more time delivering value to our users.” — Sandeep Panda, Co-founder, Hashnode 1. [Hashnode](https://hashnode.com) 2. [Mirror.xyz](https://mirror.xyz/) 3. [Read.cv](https://read.cv/) ### 2. Website & e-commerce store builders No-code site builders with customizable pages. By using Next.js and Vercel, [Super](https://super.so/) has fast, globally distributed websites with a no-code editor (Notion). Their customers get all the benefits of Next.js (like [Image Optimization](https://nextjs.org/docs/basic-features/image-optimization)) without touching any code. 1. [Super.so](https://super.so) 2. [Typedream](https://typedream.com) 3. [Makeswift](https://www.makeswift.com/) ### 3. B2B2C platforms Multi-tenant authentication, login, and access controls. With Vercel and Next.js, platforms like [Instatus](https://instatus.com) are able to create status pages that are _10x faster_ than competitors. 1. [Instatus](https://instatus.com/) 2. [Cal.com](https://cal.com/) 3. [Dub](https://dub.sh/) ## Built on open source This working demo site was built using the Platforms Starter Kit and: - [Next.js](https://nextjs.org/) as the React framework - [Tailwind](https://tailwindcss.com/) for CSS styling - [Prisma](https://prisma.io/) as the ORM for database access - [Novel](https://novel.sh/) for the WYSIWYG editor - [Vercel Postgres](https://vercel.com/storage/postgres) for the database - [Vercel Blob](https://vercel.com/storage/blob) for image uploads - [NextAuth.js](https://next-auth.js.org/) for authentication - [Tremor](https://tremor.so/) for charts - [Vercel](http://vercel.com/) for deployment ## Contributing - [Start a discussion](https://github.com/vercel/platforms/discussions) with a question, piece of feedback, or idea you want to share with the team. - [Open an issue](https://github.com/vercel/platforms/issues) if you believe you've encountered a bug with the starter kit. ## Author - Steven Tey ([@steventey](https://twitter.com/steventey)) ## License The MIT License. ---

近期下载者

相关文件


收藏者