egoist / next-fullstack-starter

Next.js + Prisma + TailwindCSS +TRPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next FullStack Starter

Next.js + Prisma + TailwindCSS + TRPC

This project serves as the starting point of some of my SaaS products, so I'm continuously improving it.

Features

Documentation

Prerequisites

Moving .env.example to .env.

Use direnv to automatically load environment variables.

Then get your database ready, install PostgreSQL and make sure you have a user and database matching the default one we use:

DATABASE_URL="postgresql://postgres:password@localhost:5432/mydb?schema=public"

You can also customize it by updating .env file.

Development

# Install dependencies
pnpm i

# Initial database
pnpm --filter web db-push

# Start Next.js web app
pnpm dev

NPM Scripts

pnpm dev

Run the development server for web app.

pnpm build

Build the web app.

TRPC

TRPC app router is located at server/trpc/index.ts.

License

MIT © EGOIST

About

Next.js + Prisma + TailwindCSS +TRPC


Languages

Language:TypeScript 81.6%Language:CSS 12.9%Language:Dockerfile 4.0%Language:JavaScript 1.5%