typescript-starter
serve-static
Our great sponsors
typescript-starter | serve-static | |
---|---|---|
5 | 2 | |
1,775 | 433 | |
2.3% | 3.9% | |
4.7 | 9.1 | |
27 days ago | 6 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.
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
serve-static
-
Serving static files with Node.JS
Take a look at Nest.js web server. When the file serving option is turned on, it not only slows down your app because filesystem checks for every request but also using synchronous fs.stat to check if the file exists.
-
How do you implement your Front-end build & deploy process?
Alternatively, you can serve your frontend from the backend using serve-static. Note that this doesn't actually require that your frontend source code is nested in the backend source code directory. You are just serving the build files, not the source, so only those build files need to end up in the `nest` directory. Our dev script just peaks a level up (IE `../frontend`), while our deploy GitHub action builds the frontend and moves the files into the backend before building `nest`.
What are some alternatives?
nest-keycloak-connect - keycloak-nodejs-connect module for Nest
fastify-static - Plugin for serving static files as fast as possible
dotenv - A Ruby gem to load environment variables from `.env`.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript ๐
nest-next - Render Module to add Nextjs support for Nestjs
sirv - An optimized middleware & CLI application for serving static files~!
typeorm - TypeORM module for Nest framework (node.js) ๐
amplication - ๐ฅ๐ฅ๐ฅ Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.
node-koa-starter - Starter project for node js web applications. It uses typescript and koa.
s3-sync-action - ๐ GitHub Action to sync a directory with a remote S3 bucket ๐งบ
dotenv - Loads environment variables from .env for nodejs projects.
ditsmod - Ditsmod is a Node.js web framework, named DI + TS + Mod to emphasize its important components: it has Dependency Injection, written in TypeScript, and designed for good Modularity.