By kappo25
hi everyone, I was following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-create-a-web-server-in-node-js-with-the-http-module ) because I would like to create a real web server, that is currently running on a raspberry pi. actually now there is apache2 that is running on and it’s perfectly fine, but I want to try node.js because seams faster with a lot more easy function.
is a good idea for you? if yes do you know if is necessary to keep saying the port or if I can’t?
I am a beginner so have mercy of me if I am stupid
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
In case that you decided to go for Node.js I would recommend following this tutorial here on how to set up a Node.js application for production:
It uses Nginx as a reverse proxy so that you don’t have to type the Node.js port each time in your browser, and also you could use Let’s Encrypt to secure the installation.
Hope that this helps. Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.