Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/next-fullstack-starter
Next.js + Prisma + TailwindCSS +TRPC
https://github.com/egoist/next-fullstack-starter
Last synced: about 1 month ago
JSON representation
Next.js + Prisma + TailwindCSS +TRPC
- Host: GitHub
- URL: https://github.com/egoist/next-fullstack-starter
- Owner: egoist
- Created: 2020-04-26T08:05:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-25T09:02:29.000Z (about 1 year ago)
- Last Synced: 2024-10-23T00:36:33.246Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.14 MB
- Stars: 210
- Watchers: 3
- Forks: 12
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-NextJs - next-fullstack-starter - `Next.js + Prisma + TailwindCSS + (Type-)GraphQL` (Nextjs Starter)
README
# 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
- Query database with [Prisma](https://prisma.io)
- [Fullstack development with TRPC](https://trpc.io/)
- [TailwindCSS](https://tailwindcss.com)
- Login by sending code to email
- More to come..## Documentation
### Prerequisites
Moving `.env.example` to `.env`.
Use [direnv](https://direnv.net/) 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
```bash
# 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](https://trpc.io) app router is located at [server/trpc/index.ts](./server/trpc/index.ts).
## License
MIT © [EGOIST](https://github.com/sponsors/egoist)