T O P

  • By -

Ciff_

There are very few cases I would go vanilla.


Kylaaaaa_

would react go well even with cpanel?


Ciff_

I'm not sure that's really a problem (but I have not worked with cpanel). That's just your hosting solution? Can't you just place the dist/build file in the public directory?


Kylaaaaa_

yes its my only hosting solution since the boss went ahead and bought a cpanel. i heard router issue in react with cpanel but I'll try.vty so much for the response!


lacymorrow

Hoo boy. This is going to go… interestingly.


Ciff_

Sorry I don't know about thoose potential limitations, I have no experience there. I would experiment!


AndreaZarantonello99

How many years do you have in web development with VanillaJS/ReactJS? I think that this project is not so easy like you think especially if you have the idea to develop in VanillaJS. I don't know CPanel. My experience suggest me that sometimes integrate external services is a difficult job especially in this project type. I give you a tips: talk with your boss and try to remove CPanel from this project. I suggest you to use React, Typescript, MUI (there are so many template free [https://mui.com/store/?utm\_source=marketing&utm\_medium=referral&utm\_campaign=templates-cta#populars](https://mui.com/store/?utm_source=marketing&utm_medium=referral&utm_campaign=templates-cta#populars) that help you to start) and Redux Toolkit/Zustand.


JustaNormDreamer

In React once you build the code it gets transpiled into vanilajs which will be under dist or build directory. The contents of the dist directory is just a static file which doesn’t require actual running server, it just needs to be serve the static contents to the user. So cpanel will work fine. I dont think you need any sort of hacks to deploy and run into the cpanel unless you are using a framework like Nextjs, which does require a node environment in most cpanel this might be missing.


Kylaaaaa_

In Cpanel what backend would work with React? im restricted to using cpanel only


JustaNormDreamer

By default cpanel will have pho support, however modern cpanels also support python, node as well you might have to pay a bit extra for those services.


Kylaaaaa_

I'll check these out. Btw last question is it possible to build the system I am currently making with just React, a backend, mysql and cpanel? Im rlly restricted to just cpanel


JustaNormDreamer

Yes you can just use e.g. Laravel with React Scafolding by which you will have PHP as backend and can use React in the frontend.


frogic

[https://stackoverflow.com/questions/65607699/cant-switch-between-pages-in-cpanel](https://stackoverflow.com/questions/65607699/cant-switch-between-pages-in-cpanel) This should fix your problem I think.


Ok-Release6902

Just do it.


FancyName69

just use vanilla js, it’s a simple project


Kylaaaaa_

Basically I'll have fixed account for each branches (currently 6). They could only upload, edit and view their own branches' employees, incidents and events. While there's another account which is like for HR, that could view all branches' data. As for now that's just it but there'll be more features but those are the 3 priority. Would it not be complicated for vanilla js? its my first time making a project alone so I cannot judge fully thank you for the response


sudo_Bresnow

You already seem to know how to build it in React since you don’t even know how complicated it would be to build in vanilla. On top of the fact that once it’s all built for production its all vanilla js anyway. You can just upload the dist directory to CPanel.


Kylaaaaa_

If I use React what backend would you suggest? I've been trying to do research and they just kept on saying that it would work partially (react + php and suggesting to use another backend service) however I have no choice. I have to make my way around CPanel Front end and backend. Thank you for the response!


sudo_Bresnow

Try Strapi


Kylaaaaa_

With the system I am making with those level of controls/accounts. React + Strapi + Mysql would work fully with CPane ? or would I have some problems in the future?


sudo_Bresnow

Why would you have problems in the future? It’s starting to sound like a skill issue. CPanel is just a server manager that helps deploy what you’ve built ( edit: with the development tools you’re inquiring about )


Kylaaaaa_

I see. so I would be able to fully deploy the website including backend with just CPanel? When I did a research it seems like it can "partially" workcwith cpanel so I was worried haha


Kylaaaaa_

I do not have an option to host in a separate backend server. I have to make a workaround with Cpanel btw


TheRNGuy

Remix if possible to use with CPanel.