A simple starter template for building platforms on Vercel.
Overview
The Sveltekit Platforms Starter Template is a simple starter template designed for building platforms on Vercel. It serves as a starting point for developing scalable platforms implementation using the Svelte framework. The template allows for easy deployment on Vercel and can be extended to unlock additional functionality.
Features
- Scalable platforms implementation: The template provides a starting point for building scalable platforms using the Svelte framework.
- Easy deployment on Vercel: The template can be easily deployed on Vercel using the deploy button provided.
- App customization: Each app can be found in the /lib/apps folder, allowing for easy customization and extension.
- Dynamic rendering based on subdomain: The template uses the subdomain of the URL host to determine which app components to render in real time.
- Wildcard domain support: The use of Wildcard domains on Vercel is required for this template to function properly.
Installation
To get started with the Sveltekit Platforms Starter Template, follow these steps:
- Deploy to Vercel using the deploy button provided.
- Clone the repository.
- Each app can be found in the /lib/apps folder. Customize and extend the apps according to your requirements.
- Use the subdomain of the URL host to determine which app components to render in real time.
- Make sure to enable Wildcard domains on Vercel for proper functionality.
Development:
- Set the APP_ID environment variable for local development. This variable is used to switch context between apps.
- Install the required dependencies using
npm install or any equivalent package manager command (e.g., pnpm install or yarn). - Start a development server for testing and development purposes.
Building:
To create a production version of your app:
- Build the app using the command
npm run build. - Preview the production build using the command
npm run preview.
Summary
The Sveltekit Platforms Starter Template is a simple yet powerful template for building scalable platforms on Vercel using the Svelte framework. It provides easy deployment, app customization, and dynamic rendering based on subdomains. Utilizing Wildcard domains on Vercel is crucial for the proper functioning of the template. With a focus on scalability and flexibility, this template serves as an excellent starting point for developing robust platforms.