This is a Next.js full stack project:
- serverside rendering;
- serverless
api-routes
; - error handling;
- JWT;
- Redux;
- Node.js MongoDB driver;
- Jest
https://nextjs-auth-mongo.vercel.app
MONGO_URI=
DB_NAME=
JWT_KEY=
TOKEN_EXPIRES_IN=
for example:
MONGO_URI=mongodb+srv://user:[email protected]/db_name?retryWrites=true&w=majority
DB_NAME=db_name
JWT_KEY=bitjnOIJ6522MINijnmMiom489vreb
TOKEN_EXPIRES_IN=1m
npm i
# or
yarn
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.