Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,161,452 members, 7,846,894 topics. Date: Saturday, 01 June 2024 at 06:33 AM

Help Needed On React Project - Programming (2) - Nairaland

Nairaland Forum / Science/Technology / Programming / Help Needed On React Project (1412 Views)

My New React Project / Help On My React Project / Advanced Pdfs On React, Ionic And Kotlin (2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: Help Needed On React Project by donproject2(m): 7:47pm On Jan 23, 2023
LikeAking:
U for use word press for jobs like this..

Sorry, WordPress better not near me on this.
Re: Help Needed On React Project by Nobody: 7:58pm On Jan 23, 2023
donproject2:


Sorry, WordPress better not near me on this.

U don't need to Hate Wordpress.


It has given people more money than React, Angular and Vue combined!

Besides... Try understanding Wordpress before hating it... U can use React and other frontend Techs to build Wordpress websites.



I don't know Nigerian Devs problem with Wordpress.
Re: Help Needed On React Project by donproject2(m): 8:19pm On Jan 23, 2023
QuoteJustOnce:
@donproject2

I'll highlight your concerns in "strong" text and my answers in black

Moving on. Before I start learning new tools, I always love to be convinced that such tool is worth my time and may be my money.
Without arguments, Nextjs is one of the best frontend frameworks, no cap! A few comparison videos on YTube will clear your doubts. These days they even work together with the React to ensure any new React features are incorporated. One good example would be internationalized routing by default i.e. setting up different locales for your project. So a user in France sees your app in French and a user in Nigeria sees it in English, or one in Spain sees it in Spanish. Of course you have to provide the content or use something like i18n but then Next will automatically detect the locale and serve the appropriate page; without waiting for the page to load and have the user select the appropriate language. If you think about it deeply, that's more like server-side logic for static pages; 2 different paradigms that shouldnt naturally coexist and Next makes it happen.

I remember what you said about all-in-one package (fe + api) , I never knew Nextjs has that capability. This literally means I can eliminate Express for building APIs with NExtjs(I believe I am not wrong).
Yes, you aint wrong. In fact, you could build out your API's only without frontend and then that would be a direct replacement for an Express API app. Which means you could do FE only, BE only or both if you wish to.

I could separate routing and the actual API functions (controllers) and matrch them together later, for cleaner code, I know with Next, folder structure (inside the api folder created by Next) and the name of the file serves as the API endpoint when needed to be called from the Frontend. This is cleared out
Yes, Then there is the more advanced one called the Edge API routing. They dont' use the native Nodejs runtime but the Edge runtime i.e. they are built with standard web apis. And you can do one powerful thing with this.... Streaming!

I could create Middlewares that must return TRUE in order to allow next function called close to it to be called, i.e I can use a kind of authentication on selected routes, these routes are only accessible if the middleware called before them returns TRUE. Can you tell me I can do this with Nextjs as well.
Oh yes, Nextjs has middlewares as you would do in Express and more. Authentication? check. Bot protection? check. A/B testing? check. Localization? check. If you don't like the automatic locale detection mentioned above, then you could use middlewares to serve the correct content for a locale.

Here I am again...thanks for being there for me all the time. Appreciate bro.

My ERP project is live on testing mode like I stressed the last time. When I made the initial deployment November last year, I used Heroku for the Backend (everything went well), CloudCluster for hosting the database (SQL Server) and netlify for Frontend. All of 'em are free services just for me to test all the components of the app.

But early this year, I discovered that the app was having issue connecting to the backend server, I went back to Heroku to see what was happening. Then, I discovered that Heroku no longer make their dynos free, it is now paid for any selected package. I was not ready to pay for any service yet. This prompted me to do little research and I discovered Render (which works somehow like Heroku), they have free package too, though, with very low CPU core and RAM, nevertheless, it served my purpose, I now have my Backend hosted on Render.

The deal now is that it is getting to a point where I will need to deploy for my client, I want the best hosts for all the three major components I think the app has: backend, frontend and the database. I might settle for CloudCluster to host the database (basic plan is $7/month and can come as low as $5/month if it is a bundle subscription, let's say biennial), frontend may not really be the issue as well, I am thinking Hostinger (you may have a better host to suggest). Backend is the bone of contention here; I need suggestion on the best host out there.

Then, if you can advise me generally on choosing a better service, hint is, choosing service for app that will receive thousands of visits per minutes, let's assume, is quite different from the one that will rarely receive hundreds of such visits per minutes. This particular app I built wouldn't necessarily be a busy one because of the kind of work it is going to handle, thence, I guess I might need a lightweight service to support it. I badly need your contribution here too.

I believe few people can learn from few things I reported above, my reason for doing so. I am here to badly learn from people who have the better experience when it comes to deployment of BE with Nodejs/Express. Thanks, and I will appreciate and welcome replies.
Re: Help Needed On React Project by donproject2(m): 8:24pm On Jan 23, 2023
GREATIGBOMAN:


U don't need to Hate Wordpress.


It has given people more money than React, Angular and Vue combined!

Besides... Try understanding Wordpress before hating it... U can use React and other frontend Techs to build Wordpress websites.



I don't know Nigerian Devs problem with Wordpress.

I am a programming purist; I think that clears everything
Re: Help Needed On React Project by Nobody: 8:27pm On Jan 23, 2023
donproject2:


I am a programming purist; I think that clears everything

Na u sabi.
Re: Help Needed On React Project by donproject2(m): 8:30pm On Jan 23, 2023
GREATIGBOMAN:


Na u sabi.


Thanks for your contribution as I will still check what's up with the said WP. I believe no knowledge gained is wasted.

(1) (2) (Reply)

App Program For Biz / Creating A Social Networking Site Others Can Join In And Get Paid / Writting Codes With Blackberry Devices

Viewing this topic: 1 guest(s)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 31
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.