Skip to content
/ next-nest Public template
generated from nestjs/typescript-starter

Next.js + NestJS MVC monolith for rapid development with battle-tested standards.

Notifications You must be signed in to change notification settings

thisismydesign/next-nest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-nest

CI

Next.js + NestJS MVC monolith for rapid development with battle-tested standards.

  • Build a web app using the most popular JavaScript backend and frontend frameworks.
  • Get started in minutes with a unified codebase - no need to sync or deploy multiple services.
  • Use typed DB data directly in React via GraphQL and SSR.
  • End-to-end type safety from database to forms.
  • When the time is right, you can easily split the frontend and backend into separate services.

Use this template

Deploy

Featured in:

Stack

It has

Usage

Dev

cp .env.example .env

docker compose up

docker compose exec web yarn lint
docker compose exec web yarn test
docker compose exec web yarn test:request
docker compose exec web yarn build
docker run -it -v $PWD:/e2e -w /e2e --network="host" --entrypoint=cypress cypress/included:12.2.0 run

Functionality

REST endpoint via Nest

JWT-protected REST endpoint via Nest

GraphQL playground (query WhoAmI is JWT-protected)

query Public {
  things {
    id
    name
  }

  users {
    id
    provider
  }
}

# Add Header: { "Authorization": "Bearer <token>" }
query Private {
  whoAmI {
    id,
    provider,
    providerId,
    username,
    name
  }

  orders {
    id

    alias
    thing {
      name
    }
  }
}

mutation createOrder {
  createOrder(alias: "myname", thingName: "this is a thing you can order") {
    id
    alias
  }
}

Cognito auth (redirects to hosted Cognito UI)

Google auth

Next.js page

JWT-protected Next.js page

About

Next.js + NestJS MVC monolith for rapid development with battle-tested standards.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Packages