A boiler-plate combined with Typescript, Nest JS, Prisma, and Next JS for building full stack applications.
No time configuring your full stack web app with multiple frameworks? Here we go. TNPN is a boiler plate configured with Typescript, Prisma, Nest and Next JS. Start your projects with this template and earn a lot of time.
$ yarn
Copy the .env.example
file and create a .env
file. Configure your database and other env variables.
Configure prisma/schema.prisma
file according to your database and paste the database url in the .env file as DATABASE_URL
.
Then run :
$ yarn prisma migrate dev
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
Configure your Next JS views inside src\server\modules\view\view.controller.ts
.
// Add all view base paths here
@Get([
'/',
'_next*',
])