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
Today's post is about McDonald's. Specifically the technical side of their system.

A lot of us use event-event-driven architecture and in the next 2 articles you’ll get a superficial view of how it is done in a huge company.
Nothing special but some interesting tips about schema registry for producers/consumers contracts, dead-letter topic and cluster autoscaling.

Behind the scenes: McDonald’s event-driven architecture

McDonald’s event-driven architecture: The data journey and how it works

For more about architecture - subscribe to Tech Read channel.
Likes and shares are welcome.

#eventdriven #architecture
A lot of us like React. It's a simple, easy to learn and flexible library.
So next article for smart people who can do anything but for them it’s just hard to start)

7 Ways to Create a New React Application

Of course the way you’ll choose depends on what you need: SSR (Next.js, Remix), monorepo (NX) or just pure React.
And don’t forget about create-react-app from Facebook.

Press like this post and all your components will be rerendered only when it’s needed.
Share this and Lighthouse reports will always show 100.
Subscribe to Tech Read channel just because it’s interesting
(and if till the next post I’ll get +100 subscribers I’ll stop joking about frontend).

#javascript #frontend #react
Just a list of useful npm packages for Node.js.

Node.js Packages I Use In Every Project

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

#nodejs #npm
Building the server-side of your application usually starts with designing API - application programming interface. The most common type of architecture for web applications is REST - Representational State Transfer.

In article 15 fundamental tips on REST API design you’ll find useful advices that allows you to build good API.
Btw recommendations are language/framework/technology agnostic.

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

#api #rest
Today’s post about React, the bad things about React.

We like this library because it can be used anywhere, it’s popular, driven by Facebook, it’s easy to learn and to start new projects.
At the same time with project codebase growth some common anti-patterns can become visible.

The article "10 React Anti-patterns you should know" will describe some of them (props drilling, component nesting, coupled state) and more importantly present solutions for this problems.

You’ll 100% find something useful in the article and in Tech Read channel, so don’t forget to subscribe.
Likes and shares are welcome.

#javascript #react
Small post about pros and cons of microservices architecture by Gitlab.

What are the benefits of a microservices architecture?

My personal top reasons to try this architecture - scalability, team optimization and attractiveness for engineers (of course).

Enjoy and do not forget to subscribe to Tech Read channel.
Likes and shares are welcome.

#microservices #architecture
GraphQL is a Trap?

Interesting article about “complexity”, “high maintenance” and “infinite performance work” and some advices about designing, handling and supporting API.

Enjoy and subscribe to Tech Read channel.
Likes and shares are welcome.

#graphql #api
- You should only test through the public contract.
- Not all dependencies need to be mocked/stubbed.
- You should end up with a lot more unhappy path tests than happy path tests.
- Tests need to be small.

…and other interesting thoughts in article - Things I’ve learned from writing a lot of unit tests

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

#unittesting
“Blame processes, not people” or What we learned after I deleted the main production database by mistake by Hugo Rocha.

100% you’ll enjoy this article.

Never forget about backups, role based accesses and the procedure of restoring your data in case of failure (even if it’ll never happen) because even “Life is a long preparation for something that never happens.” (William Butler Yeats).

To be even more prepared - subscribe to Tech Read channel.
Likes and shares are welcome.

#backup
Two parts of one article about hashing algorithms in Node.js - What Is The Best Algorithm (Bcrypt, Scrypt, SHA512, Argon2) For Password Hashing In Node.js?

Links:
Part 1
Part 2

Not only common algorithms/npm modules (Bcrypt, Scrypt, SHA512, Argon2) are described by the author but pros/cons of them and benchmarks. So you can choose what to use in your Node.js application.

If you want to know more about Node.js, JavaScript, software architecture and much more -
subscribe to Tech Read channel.
Likes and shares of the post are welcome.

#nodejs #algorithms #hash
Few interesting JS questions for the beginning of the week that will demonstrate some nuances of language like function length, Object.defineProperty method parameters, cloning of objects etc.

Only 10% of developers can solve these JavaScript challenges

Subscribe to Tech Read channel to know more.
Like and share this post if you answered at >=0 question.

#javascript
Today I’d like to share a Github repo with a list of free public APIs that you can use for your projects. From list of Animals to some Government data, from Text Analysis to Test Data.

https://github.com/public-apis/public-apis

Pros: they are free (you’ll save millions of dollars).
Cons: they are free (limited, usually not stable and sometimes not maintained).

Also ask you to subscribe to the Tech Read channel and recommend it to your friends.
Likes and shares are always welcome.

#api
Firebase is great but there are also many alternative backend-as-a-service solutions:
AWS amplify, Supabase, Nhost, MongoDB Realm, Appwrite.

Short video about pros and cons of each -
I tried 5 Firebase alternatives

Subscribe to the Tech Read channel to know more.
Likes, shares and recommendations are welcome.

#backend #firebase
If you were really stressed about Node.js future - just read this article and relax.
Everything as usual is about standards (fortunately or not) and community.

Don’t worry, Nobody is Replacing Node, not Even Bun and Even less Deno

For more info - subscribe to Tech Read channel.
Likes, shares and recommendations are welcome.

#nodejs #deno #bun
"Almost Friday’s" post for all JavaScript haters about the language created for annoying people with browser popups.

JavaScript for the Haters

Subscribe to Tech Read channel if you like, hate or are bipolar about JS.
Likes, shares and recommendations make Fridays closer.

#javascript
New article from Yoni Goldberg which will help to look from the other side at such instruments like Dotenv, Morgan logger, environmental variables, Nest.js DI, Passport.js, Supertest etc.

Popular Node.js patterns and tools to re-consider

Highly recommend following the author on Medium.
And subscribe to my Tech Read channel where you’ll find a lot of interesting materials every week.
Likes, shares and recommendations are welcome.

#nodejs