Tailwind CSS, Postgres, and Auth set up.
This is a starter template using the following stack:
This template uses the new Next.js App Router. This includes support for enhanced layouts, colocation of components, tests, and styles, component-level data fetching, and more.
During the deployment, Vercel will prompt you to create a new Postgres database. This will add the necessary environment variables to your project.
Inside the Vercel Postgres dashboard, create a table based on the schema defined in this repository.
CREATE TYPE status AS ENUM ('active', 'inactive', 'archived');CREATE TABLE products (id SERIAL PRIMARY KEY,image_url TEXT NOT NULL,name TEXT NOT NULL,status status NOT NULL,price NUMERIC(10, 2) NOT NULL,stock INTEGER NOT NULL,available_at TIMESTAMP NOT NULL);
Then, uncomment
app/api/seed.ts
http://localhost:3000/api/seed
Next, copy the
.env.example
.env
.env.example
npm i -g vercelvercel linkvercel env pull
Finally, run the following commands to start the development server:
pnpm installpnpm dev
You should now be able to access the application at http://localhost:3000.
Tailwind CSS, Postgres, and Auth set up.
This is a starter template using the following stack:
This template uses the new Next.js App Router. This includes support for enhanced layouts, colocation of components, tests, and styles, component-level data fetching, and more.
During the deployment, Vercel will prompt you to create a new Postgres database. This will add the necessary environment variables to your project.
Inside the Vercel Postgres dashboard, create a table based on the schema defined in this repository.
CREATE TYPE status AS ENUM ('active', 'inactive', 'archived');CREATE TABLE products (id SERIAL PRIMARY KEY,image_url TEXT NOT NULL,name TEXT NOT NULL,status status NOT NULL,price NUMERIC(10, 2) NOT NULL,stock INTEGER NOT NULL,available_at TIMESTAMP NOT NULL);
Then, uncomment
app/api/seed.ts
http://localhost:3000/api/seed
Next, copy the
.env.example
.env
.env.example
npm i -g vercelvercel linkvercel env pull
Finally, run the following commands to start the development server:
pnpm installpnpm dev
You should now be able to access the application at http://localhost:3000.