https://github.com/mikebild/sveltekit-adapter-aws-basic-example
A basic SvelteKit example webapp using sveltekit-adapter-aws.
https://github.com/mikebild/sveltekit-adapter-aws-basic-example
Last synced: over 1 year ago
JSON representation
A basic SvelteKit example webapp using sveltekit-adapter-aws.
- Host: GitHub
- URL: https://github.com/mikebild/sveltekit-adapter-aws-basic-example
- Owner: MikeBild
- Created: 2022-06-29T13:57:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T15:55:43.000Z (over 3 years ago)
- Last Synced: 2025-02-28T18:42:49.151Z (over 1 year ago)
- Language: Svelte
- Size: 625 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/MikeBild/sveltekit-adapter-aws).
1. Setup your AWS Account using the [AWS-CLI](https://github.com/aws/aws-cli) or [AWS-Vault](https://github.com/99designs/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
```
3. Setup and deploy to AWS
**svelte.config.js**
```typescript
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'
})
}
};
```