Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vercel/nextjs-postgres-nextauth-tailwindcss-template
Admin dashboard template.
https://github.com/vercel/nextjs-postgres-nextauth-tailwindcss-template
nextjs react tailwindcss vercel
Last synced: 4 days ago
JSON representation
Admin dashboard template.
- Host: GitHub
- URL: https://github.com/vercel/nextjs-postgres-nextauth-tailwindcss-template
- Owner: vercel
- License: mit
- Created: 2022-11-12T22:18:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T15:13:38.000Z (about 1 month ago)
- Last Synced: 2025-01-30T18:07:14.452Z (11 days ago)
- Topics: nextjs, react, tailwindcss, vercel
- Language: TypeScript
- Homepage: https://next-admin-dash.vercel.app/
- Size: 239 KB
- Stars: 1,316
- Watchers: 11
- Forks: 447
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - vercel/nextjs-postgres-nextauth-tailwindcss-template - Admin dashboard template. (TypeScript)
README
Next.js 15 Admin Dashboard TemplateBuilt with the Next.js App Router
## Overview
This is a starter template using the following stack:
- Framework - [Next.js (App Router)](https://nextjs.org)
- Language - [TypeScript](https://www.typescriptlang.org)
- Auth - [Auth.js](https://authjs.dev)
- Database - [Postgres](https://vercel.com/postgres)
- Deployment - [Vercel](https://vercel.com/docs/concepts/next.js/overview)
- Styling - [Tailwind CSS](https://tailwindcss.com)
- Components - [Shadcn UI](https://ui.shadcn.com/)
- Analytics - [Vercel Analytics](https://vercel.com/analytics)
- Formatting - [Prettier](https://prettier.io)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.
## Getting Started
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` and hit `http://localhost:3000/api/seed` to seed the database with products.
Next, copy the `.env.example` file to `.env` and update the values. Follow the instructions in the `.env.example` file to set up your GitHub OAuth application.
```bash
npm i -g vercel
vercel link
vercel env pull
```Finally, run the following commands to start the development server:
```
pnpm install
pnpm dev
```You should now be able to access the application at http://localhost:3000.