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
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
YouTube
NestJs Course for Beginners - Create a REST API
Learn NestJs by building a CRUD REST API with end-to-end tests using modern web development techniques. NestJs is a rapidly growing node js framework that helps build scalable and maintainable backend applications.
In this course, we build a bookmarks API…
In this course, we build a bookmarks API…
С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
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
Medium
Clean Node.js Architecture —With NestJS and TypeScript
“Your architectures should tell readers about the system, not about the frameworks you used in your system” — Robert C. Martin
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
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
Marcin Wanago Blog - JavaScript, both frontend and backend
API with NestJS Archives - Marcin Wanago Blog - JavaScript, both frontend and backend
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
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
- 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
Trilon
Circular Dependencies in NestJS and how to Avoid Them - Trilon Consulting
A deep dive on Circular Dependencies with NestJS and tips for how to find and avoid them