typescript-starter
nestjs-typegoose
Our great sponsors
typescript-starter | nestjs-typegoose | |
---|---|---|
5 | 2 | |
1,775 | 286 | |
2.3% | - | |
4.7 | 0.0 | |
26 days ago | 10 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
nestjs-typegoose
- Is it possible to generate Mongoose schemas?
-
On Nestjs
As much as I don't like to use it, there are people who decide that NoSQL and MongoDB are the way to go for their application. Before v7, Nest didn't provide it's own decorators for a mongoose integration, and developers had to use the standard schema approach. While there's nothing wrong with this, it definitely does bring in some pain points when it comes to types and DTOs, so a SchemaFactory was created to allow developers to keep using classes to define their mongoose schemas. This works pretty well, but does admittedly lack some features, like virtuals and static methods. These can be added to the generated schema, but Typescript will not know about them. I usually suggest people use nestjs-typegoose instead of Mongoose/Typegoose integration with NestJS.
What are some alternatives?
nest-keycloak-connect - keycloak-nodejs-connect module for Nest
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
dotenv - A Ruby gem to load environment variables from `.env`.
prisma1 - 💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
typeorm - TypeORM module for Nest framework (node.js) 🍇
crud - NestJs CRUD for RESTful APIs
nest-next - Render Module to add Nextjs support for Nestjs
nx-node-apollo-grahql-mongo - Nx Nodejs Apollo - TypegraphQL / GraphQL / Express / MongoDB - Typegoose API Boilerplate
node-koa-starter - Starter project for node js web applications. It uses typescript and koa.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
dotenv - Loads environment variables from .env for nodejs projects.
mongoose-tsgen - A plug-n-play Typescript interface generator for Mongoose.