I need a big help from you guys, I'm very confused.
I've been researching about apis hosting in node.js and in php. And front-end projects using next.js or react.
I found a lot of information and I'm very confused.
Should I use one hosting for apis and one for front/site?
Or do I use a VPS to manage all this?
CodePudding user response:
Node.JS and PHP are both server side language and technologies.
Depending on your hosting service provider, you may provide responses to requests, for one or both.
Contact your hosting or take a look at features and pricing page to see if they support only PHP, only Node.JS or both.
CodePudding user response:
If you use VPS and they provide root access, you can host any of the services written in Node, PHP, Ruby, etc. in one place.
And, next project can easily be hosted in Varcel (who makes next), Netlify, etc. If you don't use getServerSideProps in next js, I think you don't even need a VPS and can easily host anywhere you like.
If you are used to traditional Cpanel, I think its kinda hard to host nodejs project. I would recommend vps or some cloud services.