Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/atilafassina/xata-nuxt
- Owner: atilafassina
- Created: 2023-07-06T12:22:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-06T12:23:14.000Z (over 1 year ago)
- Last Synced: 2025-01-13T02:06:39.560Z (5 days ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`: