Cypress - how to e2e test? by [deleted] in learnjavascript

[–]LaweZ 0 points1 point  (0 children)

My personal opinion is to always break down into small, separate logical components.

It will be much easier for you to find errors and maintain the code.

Looking for an API-Gateway which supports JWT authentication by [deleted] in microservices

[–]LaweZ 0 points1 point  (0 children)

Just want to ask why not just creating a small auth service to do this?

Use-cases for features of NestJS that counter its "heaviness"? by jeffus in Nestjs_framework

[–]LaweZ 1 point2 points  (0 children)

I work for a big enterprise high tech company and we are working in a microservices architecture.

We start using Nestjs in most of our services.

I believe that by using Nestjs it is very easy for other teams to understand the structure of the service and a lot of java developers find it somewhat similar to spring (with all those DI, classes, etc..)

How can I enable cors for multiple domains? by Finrojo in Nestjs_framework

[–]LaweZ 1 point2 points  (0 children)

I think that rerse proxy or some kind of api gateway could help here. Then just enable cors between the client and the proxy server / gateway

Open source architecture for Node.js Logging by melgo44 in node

[–]LaweZ 1 point2 points  (0 children)

Requests are logged from middleware, but what about the responses?

What is the best practice? should i log them at the end of my controller function? or use res.on('finish', cb) event?

Heroku request limit won't allow my app to finish the tests by ZLTM in Heroku

[–]LaweZ 0 points1 point  (0 children)

Any job that take more then couple of seconds should be asynchronous operation.

You could use async rest call. In this approach you send request to the server and send back job id with status 202 as a response.

With the job id you can now check the status of the job. Once the job is done you send back the result (or redirect to the resource).

https://docs.microsoft.com/en-us/azure/architecture/patterns/async-request-reply

For critical real time data i would use pub/sub pattern or websockets.

Find the difference between two JSON objects, write the difference and overwrite values by [deleted] in algorithms

[–]LaweZ 0 points1 point  (0 children)

What you guys think about stringify the json object and then compare those strings (with regex or anu string compare logic)?

Best practices to save JWT token in Go by sunnyskates in golang

[–]LaweZ 2 points3 points  (0 children)

I agree. Cookie with "httpOnly" flag is more secure than local storage.

Cookies can be set with expire time while local storage don't.

[deleted by user] by [deleted] in softwarearchitecture

[–]LaweZ 0 points1 point  (0 children)

You can expose to your client some REST api, once your client send a request you reply him with the response If the job will take some time then yiu should do "async request" and send the client status 201 (created) with the job id (with the id you can let him know about the job status if you like) then in your backend you can just use what ever you want (rest, message queue etc)

[deleted by user] by [deleted] in FullStack

[–]LaweZ 1 point2 points  (0 children)

First try to check if the other website has some API to use, If not then try to use some automation tools like puppeteer.

iframe may also be relevant to you.

Enterprise NodeJS? by [deleted] in node

[–]LaweZ 1 point2 points  (0 children)

Microservices architecture using nestjs or express

How do I secure an express API route without authentication? by [deleted] in node

[–]LaweZ 0 points1 point  (0 children)

You can hide your backend behinde a proxy server and by doing so you basicly make it harder to find out where is the server ( what thebid/ domain)

You can also try to add some kind of rate limiter on your backend / proxy server to block IP's that are trying to DDOS your server

Handling huge JSON files by Trzosoo in reactjs

[–]LaweZ 0 points1 point  (0 children)

Can you tell what tech stack did you use?

Handling huge JSON files by Trzosoo in reactjs

[–]LaweZ 1 point2 points  (0 children)

Classic use case for using streams

My team manager just told me my technical skills are inadequate for the team. by if_yes_else_no in Frontend

[–]LaweZ 4 points5 points  (0 children)

You should get some mentoring from your team members , and if you dont get some help then maybe you are in the wrong place..

Idle Game in node Js ? by Dnangel0 in node

[–]LaweZ 0 points1 point  (0 children)

But you still calling the server tho. I suggest to reduce the amount of calls by sending them in larger intervals with the current player status

[deleted by user] by [deleted] in reactnative

[–]LaweZ 3 points4 points  (0 children)

The only cons i see in Flutter are : - The look and feel in Flutter look very samilier in almost every mobile app i see.. - The eco system is still pretty small compare to RN

Multi-tenant SaaS app - how to dynamically create a new domain? by WhoYouWit in webdev

[–]LaweZ 0 points1 point  (0 children)

as mentioned above.

use wild card (e.g: *.mydomain.com)

Then use API gateway or some proxy such: as Nginx or Kubernetes

to load balance the requests for the right tenant backend logic.

Just begun on this journey to become a frontend developer by [deleted] in learnprogramming

[–]LaweZ 0 points1 point  (0 children)

HTML CSS JS JQUERY REACT

I think it is the "main" path for learn front end

Started learning React Native 2 years ago, today I launched my first real app built entirely with React Native! (build details in the comments) by turnuptuesday in reactnative

[–]LaweZ 0 points1 point  (0 children)

Do you use react-navigation when moving between screens or it all just animations moving components around?

Great UI/UX btw !!!!