Start at full speed with pilechat !
Introduction · Installation · Tech Stack + Features · Author · Credits
Lets goooo - Next.js 14, Prisma, Planetscale, Auth.js, Resend, React Email, Shadcn/ui, and Stripe.
All seamlessly integrated with the pilechat to accelerate the development.
Clone & create this repo locally with the following command:
git clone https://github.com/meglerhagen/pilechat.git
- Install dependencies using pnpm:
pnpm install
- Copy
.env.example
to.env
and update the variables.
cp .env.example .env.local
-
Input everything you need for the env.
-
Start the development server:
pnpm dev
This project uses MySQL database on PlanetScale. To setup a DB for your local dev:
- Create a free account and a new Database
- From the dashboard, create a branch and click "Connect" button.
- Hit
Create password
and selectPrisma
inConnect with
dropdown - Copy the url to
.env.local
file - run
pnpm run prisma:push
(Be mindful prisma migrate won't work because it requires more privileges for the database user).
You can also use docker-compose
to have a Mysql database locally, instead of relying on PlanetScale:
- Enter
MYSQL_ROOT_PASSWORD
,MYSQL_DATABASE
,MYSQL_USER
andMYSQL_PASSWORD
values in.env.local
. - run
docker-compose --env-file .env.local up
to start the DB. - run
pnpm run prisma:push
.
This project uses Resend to handle transactional emails. You need to add create an account and get an api key needed for authentication.
Please be aware that the Resend is designed to send test emails exclusively to the email address registered with the account, or to [email protected]
, where they are logged on their dashboard.
The default setting for TEST_EMAIL_ADDRESS
is [email protected]
but you have the option to change it to the email address that is associated with your Resend account.
-
Initial setup - Start removing template
- Update UI to match the product
- XXXXXXXX
- Next.js – React framework for building performant apps with the best developer experience
- Auth.js – Handle user authentication with ease with providers like Google, Twitter, GitHub, etc.
- Prisma – Typescript-first ORM for Node.js
- React Email – Versatile email framework for efficient and flexible email development
- Vercel – Easily preview & deploy changes with git
- PlanetScale – A cutting-edge database platform for seamless, scalable data management
- Resend – A powerful email framework for streamlined email development
- Tailwind CSS – Utility-first CSS framework for rapid UI development
- Shadcn/ui – Re-usable components built using Radix UI and Tailwind CSS
- Framer Motion – Motion library for React to animate components with ease
- Lucide – Beautifully simple, pixel-perfect icons
next/font
– Optimize custom fonts and remove external network requests for improved performanceImageResponse
– Generate dynamic Open Graph images at the edge
We love our contributors! Here's how you can contribute:
- Open an issue if you believe you've encountered a bug.
- Make a pull request to add new features/make quality-of-life improvements/fix bugs.