A Next.js RESTful API Starter for building SaaS app.
Let NextAPI handle the heavy lifting for common SaaS features such as authentication, team management, invites, subscriptions, and more.
Say goodbye to tedious backend boilerplate code and focus on what matters most - building user-friendly UI/UX that delight your customers.
With its powerful combination of Next.js, Supabase, and Prisma - NextAPI provides the perfect foundation for creating scalable and feature-rich SaaS apps.
NextAPI comes with a set of API routes that you can use within your React components.
Method | Path | Description |
---|---|---|
POST | /api/auth/signup | Sign up a new user |
POST | /api/auth/signin | Sign in an existing user |
POST | /api/teams | Create a new team |
GET | /api/teams | Get all teams for user |
GET | /api/teams/:slug | Get a team |
DELETE | /api/teams/:slug | Delete a team |
PUT | /api/teams/:slug | Update a team |
POST | /api/teams/:slug/invites | Create a new invite |
GET | /api/teams/:slug/invites | Get all invites for team |
GET | /api/teams/:slug/invites/:inviteId | Get an invite |
DELETE | /api/teams/:slug/invites/:inviteId | Delete an invite |
GET | /api/teams/:slug/members | Get all members for team |
PUT | /api/teams/:slug/members/:memberId | Update a member |
DELETE | /api/teams/:slug/members/:memberId | Delete a member |
GET | /api/me | Get current user |
PUT | /api/me | Update current user |
POST | /api/invites/:inviteId/accept | Accept an invite |
POST | /api/invites/:inviteId/decline | Reject an invite |
npm install
to install dependencies.env.example
to .env.local
and update the environment variablesnpx prisma migrate deploy
to apply migrationsnpm run dev
to start the development serverMIT License