AI Interfaces with Vue, Nuxt, and the AI SDK

Bootstrap New Node Project for TypeScript

In this lesson, setup a new Node.js project for following along with the rest of the course. Alternatively, you can skip the lesson and download the boilerplate code. Do note the tsx script that’s been added in package.json for running typescript files with a .env file loaded.

// tsconfig.json
{
  "compilerOptions": {
    "noEmit": true,
    "target": "esnext",
    "module": "nodenext",
    "rewriteRelativeImportExtensions": true,
    "erasableSyntaxOnly": true,
    "verbatimModuleSyntax": true
  },
  "include": ["**/*.ts"],
  "exclude": ["node_modules"]
}

Links