Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atilafassina/xata-nuxt

quick and dirty demo setting up xata with Nuxt3
https://github.com/atilafassina/xata-nuxt

Last synced: 1 day ago
JSON representation

quick and dirty demo setting up xata with Nuxt3

Awesome Lists containing this project

README

        

# Xata Nuxt 3 minimal starter

This is a bare bones example of Xata and Nuxt 3

## Setup

> Examples use `pnpm` but you can also use `yarn` or `npm`.

Shallow copy this repository.

```
pnpx degit atilafassina/xata-nuxt
```

Install dependencies:

```
pnpm i
```

Once this is done, you can install the Xata CLI and initialize the DB.
(this project is using the sample blog post db, and schema can be found at `schema.example.json`).

Otherwise, you can use `pnpm dlx` for it:

```
pnpm -s dlx @xata.io/cli@latest --schema=schema.example.json --output=lib/xata.codegen.ts
```

Once this is done and code is generated, you can start the development server on `http://localhost:3000`: