next-fullstack-template-ts is an NPM package that helps developers quickly set up authentication using next-auth without any code or very minimum code (only updating ".env"). You can anytime update the generated files.
To install the package, run the following command:
- npx create-next-app appName (keep typescript, src, app directory while installing)
- cd appName
- npm install next-fullstack-template-ts
- npx template generate
Please Note - write (y/n) according to the requirements in terminal if asked to
Above scripts will generate few folders and files. In .env, update the fields with your own credentials
- Sets up Database automatically.
- Creates an initial login and register route that can be updated later on.
- Prompts to overwrite existing files or skip them.
- get it from Google Cloud Console