Skip to content

Jedliu/nestjs-vite-demo

Repository files navigation

Description

A demo for Nest to work with vite-plugin-node. Test can be run by Jest and Vitest.

Installation

$ pnpm install

Running the app with Nestjs default way

# development
$ pnpm run start

Running the app with vite

# development
$ pnpm run start:vite

Test with Jest

# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

# test coverage
$ pnpm run test:cov

Test with Vitest

# unit tests
$ pnpm run test:vitest

To work with socket

# run the server
$ pnpm run start

# visit http://localhost:3000 for testing

Known problem

The nestjs socket doesn't work with vite yet.

About

A demo for nestjs with vite-plugin-node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published