vite-plugin-node
typescript-starter
Our great sponsors
vite-plugin-node | typescript-starter | |
---|---|---|
2 | 5 | |
935 | 1,775 | |
- | 2.3% | |
3.4 | 4.7 | |
25 days ago | 30 days ago | |
TypeScript | TypeScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vite-plugin-node
-
Getting started with NestJS, Vite, and esbuild
One of the advantages of using the Vite plugin (vite-plugin-node) is that we can choose to use either esbuild or swc to compile our TypeScript files, though we used only esbuild in this post.
-
Better Backend DX: Fastify + ESBuild = ⚡️
Yes, there is a Vite plugin: vite-plugin-node which leverages Vite's SSR mode to bring HMR to the Node dev server and also provides adapters for Express, Koa, and Fastify.
typescript-starter
-
5 steps to create a bare minimum NestJS app from scratch!
Let's say you want to create a new NestJS standard application from scratch but taking the full control of your dependencies, scripts and source code. Thus, you don't want to use the usual npx @nestjs/cli new command (which basically bootstraps the typescript starter project) since you wish a bare minimum app.
-
whoever created Nest.js he really likes complexity!
You don't need to use the Nest CLI if you don't want to. You can literally just create a index.ts file, use NestJS within it and run it with ts-node index.ts (though you gotta make sure you have the correct tsconfig.json)
-
Getting started with NestJS, Vite, and esbuild
Another option is to clone the starter repo from GitHub. Note that to install the JavaScript flavor of the starter project, we can clone this repo, but you’ll need Babel to compile vanilla JavaScript).
- CI/CD with a simple NestJS server
-
Seeding NestJs with Prisma And Faker
git clone https://github.com/nestjs/typescript-starter.git project cd project yarn yarn add -D prisma npx prisma init
What are some alternatives?
fastify-esbuild - Boilerplate to create a Fastify app with better DX
nest-keycloak-connect - keycloak-nodejs-connect module for Nest
vitest - Next generation testing framework powered by Vite.
dotenv - A Ruby gem to load environment variables from `.env`.
fastify - Fast and low overhead web framework, for Node.js
typeorm - TypeORM module for Nest framework (node.js) 🍇
fastify-autoload - Require all plugins in a directory
nest-next - Render Module to add Nextjs support for Nestjs
esbuild - An extremely fast bundler for the web
dotenv - Loads environment variables from .env for nodejs projects.
vite-plugin-xml-loader - Lightweight Vite plugin that converts all XML to JSON
node-koa-starter - Starter project for node js web applications. It uses typescript and koa.