Git Product home page Git Product logo

nextapi's Introduction

NextAPI

Github stargazers Github issues License

A Next.js RESTful API Starter for building SaaS app.

Introduction

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.

API Documentation

Built with

API routes

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

Emails are sent for the following events

  • When a new user signs up
  • When a new invite is created
  • When a user is added to a team
  • When a user is removed from a team

Getting started

  • Fork this repository
  • Clone your forked repository
  • Navigate to the project directory
  • Run npm install to install dependencies
  • Copy .env.example to .env.local and update the environment variables
  • Run npx prisma migrate deploy to apply migrations
  • Run npm run dev to start the development server

License

MIT License

nextapi's People

Contributors

devkiran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nextapi's Issues

APIs for teams

  • Create team
  • Get a team
  • Get all the teams for a user
  • Delete a team
  • Update team

Send transactional emails

Send transactional emails

  • When a user signs up
  • When a user is invited to a team
  • When a user is removed from a team
  • When a user is added to a team

APIs for team members invitations

  • Invite a member
  • Remove an invitation
  • Get all the pending invitations
  • Accept the invitation
  • Reject the invitation
  • Resend the invitation
  • Create a unique token for invitation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.