Atila Fassina's website

Setup 🧱

Environment Variables
XATA_API_KEY=<xata api token>
XATA_FALLBACK_BRANCH=< default branch >
Database Schema
{
  "tables": [
    {
      "name": "articles",
      "columns": [
        {
          "name": "published_at",
          "type": "text"
        },
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "description",
          "type": "string"
        },
        {
          "name": "platform",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        }
      ]
    },
    {
      "name": "appearances",
      "columns": [
        {
          "name": "date",
          "type": "text"
        },
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "description",
          "type": "string"
        },
        {
          "name": "recording",
          "type": "string"
        },
        {
          "name": "slides",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        },
        {
          "name": "type",
          "type": "string"
        },
        {
          "name": "published",
          "type": "bool"
        },
        {
          "name": "isFuture",
          "type": "bool"
        },
        {
          "name": "place",
          "type": "string"
        }
      ]
    }
  ]
}

You can save the above snippted in a schema.json and push to your own Xata workspace:

pnpm dlx @xata.io/cli init --schema schema.json

Run It! 🔭

pnpm install && pnpm dev

Runs it locally on localhost:3000 🧑‍🚀