Giter VIP home page Giter VIP logo

authv5's Introduction

This is a Next.js project bootstrapped with create-next-app.

Github Repository

clone the repository code

Branches

boilerplate
The boilerplate branch contains the basic template code for the project. This provides a starting point for new development.

dev
The dev branch is used for ongoing development work. All new features and bug fixes are merged into dev during the development phase.

main The main branch contains the production-ready source code. This branch contains thoroughly tested code deployed onto production。

Examples

Data fetching See dev route:

NOTE:

(Use vscode settings to exclude the files) bunx prisma generate will generate zod schema from prisma schema. This is ignored in .gitignore: /prisma/generated/zod/index.ts. You should always delete the generated zod schema for better IDE performance Copy the code needed into @/lib/schema.ts when needed.

TODO

  • fix google oauth
  • multi oauth provider link to same email user
  • account link logic: 1, pw first:add image to user 2, oauth first: add pw to user
  • default loading page/skeleton components set
  • use server action to login on social.tsx
  • email verification flow
  • oauth user has same email link to email user
  • send register confirmation email
  • implement DTO layer: https://nextjs.org/blog/security-nextjs-server-components-actions

Fetching Data

https://m09tqret04o.feishu.cn/wiki/ULAawULUziLp0UkSkmUcl0sHn2f?from=from_copylink

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Second, setting up the .env file from .env.example

  1. Get a Mysql dev database locally running or cloud. Generate the database url for prisma.
  2. Setup nodemailer smtp
  3. Setup Oauth credentials for google and github
  4. other settings

Then, run prisma db push, init database schema.

Open http://localhost:3000 with your browser to see the result.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

authv5's People

Contributors

wuzhuzhu avatar of-qinhai avatar

Watchers

 avatar

Forkers

siliconflow

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.