/tnpn

Boiler plate for full stack applications using Typescript, Nest JS, Prisma, and Next JS.

Primary LanguageJavaScriptMIT LicenseMIT

Typescript Logo Nest Logo Prisma Logo Next Logo

T N P N

A boiler-plate combined with Typescript, Nest JS, Prisma, and Next JS for building full stack applications.

Issues GitHub pull requests

Description

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.

Installation

$ yarn

Environment variables

Copy the .env.example file and create a .env file. Configure your database and other env variables.

Migration

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

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Views

Configure your Next JS views inside src\server\modules\view\view.controller.ts.

// Add all view base paths here
@Get([
  '/',
  '_next*',
])