Jump to content
[MUST READ] Forum Rules ×

Need Free Web Host For My Web Application


DragonOsman

Recommended Posts

I have a web application with its web server (it's written in C++) and I'd like to host it here if possible.  It has SSL support but the certificate isn't valid currently, so I'd also like a (preferably free) domain name that I can get a valid certificate for it on.  It uses Boost.Beast, a C++ library based on Boost.Asio that supports HTTP/S and WebSockets, and also Jinja2Cpp (HTML Template library based on Python's Jinja2--work in progress, but intended to support all features that Jinja2 already supports as well) and Nlohmann JSON.  

On the JavaScript code, read the comments and then skip down to line 1024; looking at the whole object holding the country-currency mapping isn't necessary.

If this site doesn't support compiled scripts on the backend, then do you guys know of one does that's also free?  Thanks in advance for any replies and/or help.

currency_converter.cpp

scripts.js

styles.css

index.html

Edited by DragonOsman
Forgot to attach HTML file
Link to comment
Share on other sites

1 minute ago, DragonOsman said:

So I can't host a web server here on the free plan?  

Basically, you have an app that connects to the webserver, and gathers data to later display it on your app. Did I understand it correctly ?

Link to comment
Share on other sites

Yes, pretty much.  I added SSL support because I plan to use Let's Encrypt to get a certificate once I have a domain and some space to host the app and its files on.  I wanted to know if I can do that here on the free plan.  

Note: I have a compiled backend app that also acts as both a web server and a client.  So I need a web host that would run that script as an executable (I'll have to recompile it for Linux if this place doesn't support Windows executables, though).

Edited by DragonOsman
Link to comment
Share on other sites

5 minutes ago, DragonOsman said:

Yes, pretty much.  I added SSL support because I plan to use Let's Encrypt to get a certificate once I have a domain and some space to host the app and its files on.  I wanted to know if I can do that here on the free plan.  

Note: I have a compiled backend app that also acts as both a web server and a client.  So I need a web host that would run that script as an executable (I'll have to recompile it for Linux if this place doesn't support Windows executables, though).

If you need to execute anything other than the usual web server scripts, you will need to have a look at a VPS, or a Dedicated Server.

You can get a free domain from freenom.

Link to comment
Share on other sites

6 minutes ago, DragonOsman said:

Well, the compiled C++ application is a web server with some added code to make a request to a currency API and to convert currencies, so it should be fine here unless .exe files aren't allowed (though I can try to get a Linux executable in that case).  

If apache, nginx.. Can't execute it, then you can't run it on the web plan. You would need to choose a VPS, or a Dedicated Server.

You could host the .html, .js and .CSS files without any problems. But you can't execute .sh nor .exe files ( unless you use a vps, or a Dedicated Server ).

Link to comment
Share on other sites

Apache should be able to execute it as an added service or behind a reverse-proxy, like with a Wt app (if you know what I'm about talking about here).  

Will a compiled server-side application not work at all on here?  I can compile the app to a Linux executable, so it doesn't have to be a .exe.

Edited by DragonOsman
Link to comment
Share on other sites

2 minutes ago, DragonOsman said:

Apache should be able to execute it as an added service or behind a reverse-proxy, like with a Wt app (if you know what I'm about talking about here).  

Will a compiled server-side application not work at all on here?  I can compile the app to a Linux executable, so it doesn't have to be a .exe.

Unless it's a .html, .CSS, .JS, .PHP... You need to use a VPS, or a Dedicated Server. 

Link to comment
Share on other sites

10 hours ago, DragonOsman said:

Apache should be able to execute it as an added service or behind a reverse-proxy, like with a Wt app (if you know what I'm about talking about here).  

Will a compiled server-side application not work at all on here?  I can compile the app to a Linux executable, so it doesn't have to be a .exe.

I don't know any "web hosting" service which allows you to run your own application program to handle requests. "Web hosting" is usually used to host PHP, Perl or ASP scripts using a web server and interpreter managed by the host.

Limited support for other languages (Ruby, Python, NodeJS) is being developed as well by cPanel. But that uses Passenger which, again, means the interpreter is being controlled and managed by the host. Java support is also supported by some systems, which feeds the WAR file into a Tomcat server managed by the host.

In other words, a key characteristic of web hosting is that the application runtime is controlled by the host. So if a host doesn't offer a runtime for a certain language (or the runtime used doesn't support all necessary features of a language), you can't host your software on it. "Web hosting" doesn't allow you to bring your own binary and run it as a persistent process. 

Either you need to get a server where you can manage your own runtime (like a VPS or Dedi) or you need an Application Hosting service (like Heroku).

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...