I have made a super duper simple Node js app with express js. You can see it at xavierfont.com:8080 … that is the problem, you need to type the port…
I have the Node JS API hosted on a Ubuntu VM on Digital Ocean… What I did was gained accesed with the Open SSH from my computer, downloaded Node, NPM, and Express, wrote the code on VIM, and ran node app.js and my app runs on the specified port of 8080.
Cool, I then set up the DNS Managment Record of type "A" with Cloudflare, who also hosts my domain name, to direct to my the public IP of my Digital Ocean server.
My DNS managment records in Cloudflare
What do I do? This is my first time deploying an app, I justt wanna go to xavierfont.com and get an HTML page.
>Solution :
You are going to have to host it on port 80 for HTTP or 443 for HTTPS (if you have an SSL). Otherwise, you cant redirect it to a different port without typing it into the url.