Cloadflare D1 database in Nuxt

Опубликовано: 25 Декабрь 2024
на канале: benixal
497
17

How to connect to Cloudflare D1 database and insert data and read in a Nuxt app
Source: https://github.com/benixal/Nuxt-Cloud...
DEMO: https://nuxt-d1.pages.dev/

Note (00:14:45): Ensure bindingName uses an uppercase 'N': bindingName.

00:00 intro
00:07 create a nuxt app on local
01:52 create inputs
02:20 create API to receive data
03:12 send data to API
05:25 receive data in API
06:13 deploy to cloudflare
10:32 create D1 database
11:30 create a table
12:36 connect D1 database to the Nuxt app
13:32 config nuxt.conf.ts for database
15:21 insert data to table
18:52 first insert
20:00 read data from database and display it