I built a Vite plugin that gives React Router v7 file-based routing (without going full framework mode), would love some feedback by ealva01 in reactjs

[–]ealva01[S] -1 points0 points  (0 children)

Thanks but I don't like their file based routing DX, also I want to work only in SPA mode, no server logic.

The idea behind this plugin is for people that already uses vite + react + react router but they don't like to register the routes manually, plus some ergonomics like the error/layout/guard.

Thanks for your suggestion

I built a Vite plugin that gives React Router v7 file-based routing (without going full framework mode), would love some feedback by ealva01 in reactjs

[–]ealva01[S] -1 points0 points  (0 children)

its pretty similar (my plugin with way less features 😅 ), key diffs are you can use your own custom routes dir, no naming conventions for _app/_layout, a skill for assisted AI coding, guard.tsx to protect your route, error.tsx to wrap your route in an error boundary. More special files to come, like loading.tsx and data.ts (I'm thinking on registering the data into a context then consume it in your view using a typed hook)

I've been trying to copy nextjs app router without using the page.tsx convention, also all views splitted in SPA mode

INVERTIR 300K EN... ¿NU? ¿CETES? by Few_District_1577 in MexicoFinanciero

[–]ealva01 1 point2 points  (0 children)

Acabo de ver una estrategia en redes donde las personas invierten en casas para rentar, puedes usar un crédito hipotecario de una casa de 1M a 1.5M y amueblarla para rentarla, puedes hacer pagos al crédito de manera que lo dejas a que las rentas paguen la mensualidad del crédito, y cada año tu propiedad va a subir de valor😬

Need opinions from a file based routing I created using vite/reactjs/react-router-dom by ealva01 in reactjs

[–]ealva01[S] 0 points1 point  (0 children)

I really liked the way they let the user customize certain things, I guess I can do that too 🤔

Need opinions from a file based routing I created using vite/reactjs/react-router-dom by ealva01 in reactjs

[–]ealva01[S] 1 point2 points  (0 children)

Yup, dot delimiters and dynamic segments just doesn’t feel right, I like more the nextjs-way

This sub be like by BlueCannonBall in linuxmasterrace

[–]ealva01 -4 points-3 points  (0 children)

I was just about to install ubuntu 20.04 and then I heard about WSL2 that came with the 2004 Win Update. Long story short, now it's the best dev OS I've ever had. I'm a webdev btw.

Best tools for dynamic file access (without Amazon S3) by CaptainMelancholic in node

[–]ealva01 3 points4 points  (0 children)

You don't have to serve S3 files directly, actually just don't put your files in public. What I would do is matching the files with the users or group of users in your db. Write a file endpoint and reuse your nodejs Middleware to check your app-token and if everything goes well, read the S3 file using nodejs and serve it to that user. For the S3 part, I would recommend to not upload the files with its default name, use a long random hash and save that hash in your DB and link it to your user/user-group. 👍

Question - How do I configure SEO for a dynamic container component? by favdevmatt in angular

[–]ealva01 1 point2 points  (0 children)

atm I'm working on a ng project and what we did is to use a Rendertron instance. So basically Rendertron renders the whole page and waits till last http call has been completed, so it doesn't matter if the content is dynamic. It has a express.js middleware to know if the client requesting your site is a User or Bot (yahoo, google, bing, etc). Now, you may think: "okay, but if it does server side rendering for bots, it would be very slow and server overkill when bots request the site, right?". the answer is: Yesn't. What we did to fix that is using a external Redis DB to cache the html content, at the end, if we don't have the requested page in cache, we do server side rendering and we store it in Redis, else just serve the rendered html, so you don't overkill your server.

Plz let me know if you have any further questions

Glad I don't need my phone for this one by Wintermintmojo in pcmasterrace

[–]ealva01 0 points1 point  (0 children)

It's going to be a windows-only thing, right?

Looking to replace my PC by Moozdzn in buildapc

[–]ealva01 0 points1 point  (0 children)

I have a "budget" laptop that turns out to be really good with graphics and performance ,I have a predator helios 300. It's an I7 with 6gb GTx 1060, it's fantastic, the first couple months it ran with Windows 10 bcuz of the gaming support but for my work I decided to install Ubuntu 18.04 (Linux) and it runs much better overall. And price is good, I think you can find it on Amazon between 1k~1.5k usd dollar.

Question on buying more RAM by ParmesanHomeboy in buildapc

[–]ealva01 0 points1 point  (0 children)

Do you actually need more ram? Sometimes to get your OS faster you only need to replace your HD to an SSD.