Set up your project using your preferred package manager. Use the corresponding command to install the dependencies:
Package Manager | Command |
---|---|
yarn | yarn install |
npm | npm install |
pnpm | pnpm install |
bun | bun install |
After completing the installation, your environment is ready for Vuetify development.
This section covers how to start the development server and build your project for production.
Before start the development server, make sure you copy .env.example
to .env
and update the corresponding value.
VITE_SUPABASE_URL=<Your supabase URL>
VITE_SUPABASE_ANON_KEY=<Your supabase Anon key>
after that, create table from your supabase dashboard with this schema
CREATE TABLE movies (
id VARCHAR(255) PRIMARY KEY,
title VARCHAR(255) NOT NULL,
image VARCHAR(255) NOT NULL,
description TEXT NOT NULL,
duration INTEGER NOT NULL,
genres VARCHAR(255) NOT NULL,
artists VARCHAR(255) NOT NULL,
url VARCHAR(255) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
release_date DATE NULL,
rating DECIMAL(3, 2) NULL,
view_count INTEGER NULL
);
To start the development server with hot-reload, run the following command. The server will be accessible at http://localhost:3000:
yarn dev
(Repeat for npm, pnpm, and bun with respective commands.)
Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node v21.3.0 or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.