NestJS is one of the most popular Node.js frameworks that allows you to build reliable and scalable server-side applications. It has its own philosophy and provides architecture out of the box. NestJS build with TypeScript and is heavily inspired by Angular. Also has a really nice doc.

With the tutorial below you’ll be able to investigate this framework by building CRUD application with simple auth module and e2e tests. In addition you’ll use Prisma ORM for data modeling and migrations and Passport.js for authentication (almost sure that you’ve used it before)

Tutorial:
https://youtu.be/GHTA143_b-s

Official documentation:
https://docs.nestjs.com

For more useful info - subscribe Tech Read channel.
Likes and shares are welcome.

#nestjs #nodejs #typescript #prisma #e2e
Сontinuing the theme of NestJS, I want to share an article about Clean Architecture.

https://betterprogramming.pub/clean-node-js-architecture-with-nestjs-and-typescript-34b9398d790f

In the simple example you’ll see how to build layer-by-layer services to divide business logic and frameworks. This is critical if you want to create a scalable, well-testable system with the possibility to switch between different modules, databases etc.
Because (and it’s described in the epigraph of this article by Robert C. Martin) “Your architectures should tell readers about the system, not about the frameworks you used in your system”.
Hope you agree with him (I do).

For more useful info - subscribe Tech Read channel.
Likes and shares are welcome.

#nodejs #nestjs #cleanarchitecture
If you started to learn NestJS, I recommend you to check the absolutely free series of posts API with NestJS by Marcin Wanago.

It’s detailed instruction in building API, setting DB, authentication, testing, documentation and much more. Series is still updated (btw last post is today).

Also there are some other topics like Getting geeky with Git, JavaScript design patterns, Node.js TypeScript etc.

Subscribe to wanago.io
And don't forget about Tech Read channel.
Likes and shares are welcome.

#nestjs #api #javascript
Cool news for those who build applications with NestJS.
Now you can use local login and JSON Web Token (JWT) without Passport.

At the link below you can find a blog post with the example of the implementation Sign Up, Sign In and building the JwtGuard.

NestJS Authentication without Passport

Follow the Trilon.io blog.
And for more useful info - subscribe to Tech Read channel.
Likes and shares are welcome.

#nestjs #passportjs #jwt
I think all of us at least once see this error:
{ a: 'Hello World!', b: { c: [Circular *1] } }

There are different types of Circular Dependencies:
- circular file imports
- circular module imports
- circular constructors

Recommend to check simple but useful article about Circular Dependency, instruments and principles for avoiding it -
Circular Dependencies in NestJS and how to Avoid Them

Follow the Trilon.io blog.
And for more useful info - subscribe to Tech Read channel.
Likes and shares are welcome.

#nestjs #dependencies