This is a simple authentication with nextjs and passport js
NOTE: You need to create
.env
file from.env.example
$ npm install
$ docker-compose up -d ( if wanna use docker or run MongoDB service seperate )
$ npm run dev
- Go to
http://localhost:{PORT}/register
to register new user - Go to
http://localhost:{PORT}
to Login
$ yarn test