lgs / sveltekit-adapter-aws-basic-example

A basic SvelteKit example webapp using sveltekit-adapter-aws.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SvelteKit Adapter AWS Basic Example

Demonstrates a basic deployed sample webapp on AWS https://sveltekit-adapter-aws-basic-demo.mikebild.com using SvelteKit Adapter AWS.

  1. Setup your AWS Account using the AWS-CLI or AWS-Vault
  2. Clone the repo and install dependencies
git clone git@github.com:MikeBild/sveltekit-adapter-aws-basic-example.git
cd sveltekit-adapter-aws-basic-example
yarn add aws-cdk sveltekit-adapter-aws
yarn && yarn build
  1. Setup and deploy to AWS svelte.config.js
import { adapter } from 'sveltekit-adapter-aws';
import preprocess from 'svelte-preprocess';

export default {
	preprocess: preprocess(),
	kit: {
		adapter: adapter({
			autoDeploy: true,
			FQDN: 'sveltekit-adapter-aws-basic-demo.example.com',
			stackName: 'sveltekit-adapter-aws-basic-demo'
		})
	}
};

About

A basic SvelteKit example webapp using sveltekit-adapter-aws.


Languages

Language:Svelte 62.9%Language:CSS 22.5%Language:JavaScript 5.7%Language:TypeScript 5.2%Language:HTML 3.7%