Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.

SQL

-- Policy for allowing read access to the public
CREATE POLICY "allow_read_for_public" 
ON "public"."booking" 
FOR SELECT 
TO PUBLIC 
USING (true);

-- Policy for allowing insert access to the public
CREATE POLICY "allow_insert_for_public" 
ON "public"."booking" 
FOR INSERT 
TO PUBLIC 
WITH CHECK (true);

-- Policy for allowing all actions for admins
CREATE POLICY "allow_all_for_admins" 
ON "public"."booking" 
FOR ALL 
TO admins 
USING (true);