sveltekit-blog-template

Sveltekit Blog Template

Complete SvelteKit Blog Template on AWS with Infrastructure, Backend, Frontend and Backoffice

Link to the series:

To release it follow these steps:

  1. update parameters in infra/cdk.json and cdk.context.json. Parameters that needs to be changed are:
  • {ACCOUNT_ID}: 012345678901
  • {REGION}: eu-central-1
  • {ENV}: prod
  • {API_SECRET_STRING}: s8urgjf-oid8cnj-asjkcxn-286a5s
  • {OPTIONAL_R53_ZONE_ID}: QWERTHDF65T
  • {OPTIONAL_R53_ZONE_NAME}: example.com
  • {OPTIONAL_DOMAIN_NAME}: blog.example.com
  • {OPTIONAL_DOMAIN_NAME_FOR_IMAGES}: blog-images.example.com
  1. npm install in infra/

  2. npm run deploy in infra/

  3. npm install in backend/

  4. npm run deploy in backend/

  5. npm install in frontend/

  6. update environment variabiles in frontend/.env.production and frontend/.env.quality

  1. update variables in frontend/src/aws-exports.ts with the variables from cognito
  • {REGION}
  • {USERPOOL_ID}
  • {USERPOOL_CLIENT_ID}
  • {USERPOOL_DOMAIN_URL}
  1. update adapter.prodution.json and adapter.quality.json with your preferrend configuration, I'll leave an example out there. What you must do is updating the existing resources:
  • {DISTRIBUTION_ID}: id of the CloudFront distribution created a few minutes ago
  • {CLOUDFRONT_URL}: url of the CloudFront distribution created a few minutes ago
  1. npm run dev in frontend

  2. you are probably missing your user, just create one from the cognito aws console or cli and assign it to "admin" user group

  3. 🎉

Disclaimer: this is a WIP project, it's actually a series of blogpost starting from stratch where I document the process of creating my own blog and releasing it open source for everyone. Hope you are not in a hurry, the project will be completed in a few month from when you read, if not please read this paragraph again :)

Top categories

Loading Svelte Themes