dimeloper / cartrader-nuxt

A simple car trader app built with Nuxt 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt 3 CarTrader app

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# pnpm
pnpm install

Development Server

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

pnpm run dev

Production

Build the application for production:

pnpm run build

Locally preview production build:

pnpm run preview

Check out the deployment documentation for more information.

Environment variables

In order to have the authorisation and the persistence running you are going to need a .env file on root level which should contain the following values:

  • SUPABASE_URL
  • SUPABASE_KEY
  • DATABASE_URL

ORM / Prisma

The ORM has been initialised with the command npx prisma init. More information regarding the postgres models can be found within the prisma directory. Whenever there is a change or a new model needs to be added, we can update the db by running npx prisma db push.

Debugging Supabase connection error

In case you encounter any weird db connection issues see: related issue.

About

A simple car trader app built with Nuxt 3.


Languages

Language:Vue 76.2%Language:TypeScript 21.4%Language:JavaScript 2.4%