Skip to content

TenzDelek/AnonymousFeedbackWeb

Repository files navigation

new Used TechStacks

  1. resend - for email verification OTP(heavy pkge)
  2. bcrypt - for password hashing(light pkge)

Note

  1. next.js run on edgetime
    • it affect the db connection
    1. always call when new api route is made
    2. when connecting, if the connection is already there then use that else connect.
  2. api is a special file name under app dir for the api calls in next.js , instead of page.js we use route.js.
    • unlike express, here we have to directly give the methods like POST,GET and all
    export async function POST(request:Request) {
       }

HTTP METHODS AND THERE MEANING

  • GET : read
  • POST : create --most used by me
  • PATCH : update
  • DELETE : destroy

status response and their meaning

2** - good 4** - you messed up 5** - server broken

to get url in route.ts

  • const url=request.nextUrl;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published