AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Express api8/31/2023 ![]() Under the server directory run the following command.Example assuming your server is hosted on locally and your remote server URL is, make the changes below Ĭonst result = axios.get(‘ // change it toĭo this for all your client side requests.Īfter you have done the above changes, proceed to host your server API. For instance, if you used axios in your client app connected to this server to make requests, change all your requests base URL to point to this remote server URL. In this article we will be using but go ahead and replace it with your domain or subdomain.īefore we begin, ensure that you change your client app (react.js app) ajax requests base URL to point to URL you will be hosting your node.js app on. If main domain is already in use, create a subdomain dedicated for this project. Things to note before hosting your react.js appĮnsure your domain is linked to your hosting account. ![]() Please don't forget to like, share, comment, subscribe and turn on notification as that will give me the motivation to do more awesome videos and tutorials like this. _If you are the visual type like me, go ahead and watch the video below. But did you know that you can still deploy your node.js express RESTful API on cpanel which will still behave like it’s hosted on a cloud server? Well, in this article I’m going to show you step by step tutorial on how to deploy your node.js express RESTful API on cpanel. Supposing you’ve developed your awesome node.js express RESTful API, you have many alternatives of hosting platforms such as Heroku, digital ocean, aws, gcp e.t.c which is perfectly fine. ![]()
0 Comments
Read More
Leave a Reply. |