Welcome to use the Next.js Full-stack Starter template! It provides a starting point for creating full-stack applications with Next.js.
- NextAuth: Integration of NextAuth for authentication, providing support for various authentication providers.
- TypeScript: Developed with TypeScript for type safety and improved developer experience.
- MongoDB: Integration with MongoDB for database management and storage.
- Ant Design: Includes Ant Design for UI components, providing a sleek and modern design out of the box.
- Styling: Style using CSS, SASS, SCSS, or CSS-in-JS.
To get started with this template, you just need to follow these simple steps:
-
Clone the repository:
git clone [email protected]:JakeXu/nextjs-starter.git
-
Install dependencies:
yarn install
-
Move
.env.example
file to.env
and add the values for the following keys:NEXTAUTH_URL= NEXTAUTH_SECRET= GOOGLE_ID= GOOGLE_CLIENT_SECRET= GITHUB_ID= GITHUB_CLIENT_SECRET= MONGODB_URI=
-
Run locally
yarn dev
-
New OAuth App if not exist, copy Client ID & Client secrets to
.env
-
New Database for testing
0.0.0.0/0 must be added to the whitelist
Starter is MIT licensed.