next-add-nest
v1.0.4
Published
Seamlessly integrating Next.js with Nest.js
Downloads
5
Readme
Prerequisites
Setup a Next.js Project. If you have no idea how to do it, please go to https://nextjs.org/docs
Integrate Next.js with Typescript. If you have no idea how to do it, please go to https://nextjs.org/docs/basic-features/typescript
Installation
npx next-add-nest
PS: You should manually process the files with names similar to *.bak.1621557880
GraphQL Support
In addition to https://docs.nestjs.com/graphql/quick-start, manually append the following:
// app.module.ts
GraphQLModule.forRoot({
useGlobalPrefix: true,
}),
// nest-cli.json
"compilerOptions": {
"plugins": ["@nestjs/graphql/plugin"]
}
To Do
- [ ] Accept args
- [ ] Add testing library
References
https://simonknott.de/articles/Integrating-NextJS-with-NestJS.html