Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmpetrov/ultimate-saas-ts
Template to quickstart a SAAS business
https://github.com/gmpetrov/ultimate-saas-ts
Last synced: 12 days ago
JSON representation
Template to quickstart a SAAS business
- Host: GitHub
- URL: https://github.com/gmpetrov/ultimate-saas-ts
- Owner: gmpetrov
- License: mit
- Created: 2021-09-17T13:03:02.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T17:24:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T11:03:29.984Z (26 days ago)
- Language: TypeScript
- Homepage: utlimate-saas-js.vercel.app
- Size: 468 KB
- Stars: 1,270
- Watchers: 25
- Forks: 127
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-NextJs - ultimate-saas-ts - [demo](https://utlimate-saas-js.vercel.app/) (Nextjs Templates)
- jimsghstars - gmpetrov/ultimate-saas-ts - Template to quickstart a SAAS business (TypeScript)
README
# 🚀⚡️🧑💻 *Ultimate SAAS template Typescript/Next.js/NextAuth.js/Prisma/Stripe/Tailwindcss/Postgresql*
*My template to quickstart a SAAS project*
>Stop losing time implementing authentication and payment over and over again.
Focus on what brings value to your customers## Demo
https://utlimate-saas-js.vercel.app## Features
- Authentication with NextAuth.js (Own Your Data ✅)
- Email with magic link
- Github
- Many other oauth providers available [check their docs](https://next-auth.js.org/configuration/providers/oauth-provider)
- Payment with Stripe
- Stripe checkout
- Stripe billing portal
- Stripe webhooks (products / prices are synced)
- Hosted on [vercel](https://vercel.com/) for free## Stripe
Check the stripe section of this [repo](https://github.com/vercel/nextjs-subscription-payments) as the steps are very similar## Postgresql
A postgresql db is needed to deploy the app.
You can have a very small instance for free on [heroku](https://www.heroku.com/pricing#data-services)
****## Made with
- Typescript
- Next.js
- NextAuth.js
- Prisma
- Postgresql
- Stripe
- Tailwindcss
## Develop```
# create .env
cp .env.example .env# install dependencies
yarn# Launch pgsql and maildev
yarn docker:start# migrate and seed the database
yarn prisma:migrate:devyarn prisma:seed
# install stripe cli
https://stripe.com/docs/webhooks/teststripe login
stripe listen --forward-to http://localhost:3000/api/stripe/webhook
# start server
yarn dev```
## Inspirations
- https://github.com/vercel/nextjs-subscription-payments
- https://github.com/hexrcs/prisma-next-auth