Answer the question
In order to leave comments, you need to log in
How to make your own hosting for your site?
Hello. Please help me figure it out. I have a web application using MERN STACK.
There is a computer (with normal characteristics) which is constantly connected to the Internet. I will buy a domain soon. The audience of users who will use the site is still small (maximum 20). How to make your own server, what needs to be done for this?
1) I need to upload the project to my created hosting ().
2) My server was processing requests, web applications.
Answer the question
In order to leave comments, you need to log in
Well, the question of the presence (or absence) of a server at home has been discussed here a hundred thousand million times.
If you are not an admin, it's best to go to hosting - because all admin tasks such as backup, electricity and spare parts for the server are solved there.
If you don't want/can't go to hosting, take VPS. Some of the admin tasks are solved there - the provider takes care of the server (hardware) operation, but you yourself provide the server (VPS) performance issues, backups are also usually done by yourself, although you can negotiate with the provider.
Leaving aside the question of why and why, if there is a desire to pervert, then:
1) Install a normal OS, for example cent or ubuntu,
2) Raise and configure LAMP + goodies like radish, nodes, nginx to taste
3) Buy a domain, reconfigure it to your own ip.
Voila - you have your own server.
The nuance lies more in setting it all up so that it works as intended + does not fall from the first sneeze. Well, on the little things - set up a firewall, protection against attacks, logging, remote access, maybe ftp if necessary ...
https://firstvds.ru/products/vds_vps_hosting
Buy and deploy your application there
If you have such questions that for some reason you cannot find the answer on the Internet, where there are tons of information on how to set up your web server, then maybe you shouldn’t, use something like Heroku where the node.js stack is deployed for 5 minutes automatically.
If you developed this site, then at least you should know how to run it locally, then the question is strange, if you didn’t do it and generally 0 in this, then go google: first, how to raise a virtual machine on a computer, for example, through VirtualBox or WSL 2, how to install in a Linux virtual machine, for example Ubuntu, through the same WSL, the same ubuntu is generally easily installed as an application through the Windows Store on Windows 10. Well, then you google how to deploy and raise the mern stack on ubuntu. And in the end, little things: how to forward ports from a virtual machine to a local network, how to set up port forwarding from a local network to the Internet, and how to set up DNS records for a domain.
You can also use Docker containers instead of a full-fledged virtual machine, but it’s better to start with a virtual machine.
All the necessary information is easily googled, I think in a week of googling and experimenting, even with initial zero knowledge, you will certainly succeed.
No matter how I’m not a sysadmin, I think you need to install a dns server on your pitch, the first thing I found was https://artkiev.com/blog/windows-lan-change-dns-se...
Set the domain to your dns.
Everything)
But the end user will get good speed if he is physically close to you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question