DEV Community

Rupesh Krishna Jha
Rupesh Krishna Jha

Posted on

How to implement the functionality to host any web app on a given domain through a single command similar to the discourse?

Top comments (3)

Collapse
 
devdrake0 profile image
Si

This is a very broad question - what have you done so far?

  • Do you know how to create a subdomain manually, using A names and the like?
  • Do you know how to use a reverse proxy to use that subdomain on a server?
Collapse
 
rupeshiya profile image
Rupesh Krishna Jha

Thanks for your reply @si
No I haven't implemented those yet, I have never worked with these kinds of stuffs used hosting server only.
But if you please let me know the path step by step which should I follow to implement these stuff, I will definately give it a try to implement those functionality.

It would be great help if you share some docs as well paths to implement these functionality.
Looking for your reply.
Thanks

Collapse
 
devdrake0 profile image
Si

I think you need to take a step back. It's great to have an end-goal but I think you're trying to run before you've learnt to walk.

  • Have you bought a domain? If not, that's step one.
  • Then go get a server from a cloud provider (Digital Ocean, AWS, GCP etc)
  • Install Nginx and make a Hello world App on that server that serves content through a REST API
  • Access the app using the servers public IP/port etc
  • Learn to set-up your domain name using an Nginx reverse proxy
  • Learn to set-up a subdomain

There are some very generic steps, because I don't know your skill level.