Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Check out the deployment documentation for more information.
-- 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);