ffxsam / serverless-ssr-wow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless SSR Wow!

This is an example mini project demonstrating the amazingness that is Astro + SST.

Setup Instructions

  1. Clone this repo.
  2. Run pnpm i (Don't have pnpm? Install it!)
  3. Run pnpm sst:dev and give it a few minutes to deploy. When it completes, you should see something like "Deployed" followed by beerGptApiUrl: https://xx.lambda-url.us-east-1.on.aws.
  4. Kill the SST process.
  5. Copy .env.dev.local.dist to .env.dev.local and drop your OpenAI API key in there as well as the API URL provided in the SST deployment output (that's PUBLIC_BEER_GPT_API_URL). If you don't have access to the GPT-4 model yet, change that as well.
  6. Run pnpm sst:dev again.
  7. Run pnpm dev in another tab/window (this is for the Astro site).
  8. Go to http://localhost:3000 and have fun!

About


Languages

Language:Vue 40.8%Language:TypeScript 29.0%Language:Astro 27.4%Language:JavaScript 2.8%