I've developed a client's website using HTML with Tailwind, JavaScript for the front end, and Node.js with Express for the back end, along with MySQL for the database. Now I'm looking for guidance on how to properly host this website along with setting up a domain and the database. Any suggestions?
3 Answers
It’s surprising to see you built all that without having a deployment plan ready! It’s usually something you learn early in development. If you used a language model to assist you with coding, it might be wise to have an experienced developer review your work to avoid any potential vulnerabilities.
A great way to host your site is by getting a VPS from a provider like DigitalOcean or Linode. You can install Node.js and MySQL on your server and run both your backend and database there. Don't forget to point your domain's DNS to your server's IP address to get it up and running!
Have you considered containerizing your app? Writing a Docker Compose file can help you manage everything easily. I suggest deploying it on a VPS (I like Hetzner myself). Just make sure to point your domain A record to your VPS's IP, and you can use Let's Encrypt for your SSL certificates. I found a useful guide for this if you're interested!
thank you, will try it
okk i'll try