1
When designing a simple contact page prototype, I remembered that there is a possibility that the project will be hosted by Github servers.
Example
But I also remembered that hosting with Github only supports Front-End processing, that is, this contact form will not work since it should be done with a language that runs on the server side, as the PHP for example.
Doubt
You can run a contact form like this even if it’s hosted on Github Pages?
Case nay is possible, there is some alternative zero-cost to solve this problem?
As far as I know github pages only hosts static content (html, js, css), so you won’t be able to run anything related to backend. You can combine github pages (in case you don’t want to spend on domain) with an ec2 machine within AWS’s free Tier(1 year free) (or host everything there). At AWS you can also get permanent solutions at very low cost (AWS Lambda + API Gateway + S3).
– Tom Melo
How low can you get to zero? I really didn’t want to spend on hosting or domain name, actually I’m proposing to deliver the project at zero cost. It’s possible?
– Jonathas B. C.
The free Tier da aws te gives 1 year at zero cost. You can build an api and host on an ec2 machine, then you make requests via js from your githubpages to email. I’ve run applications with the serverless stack(api gateway + lambda) from aws at extremely low monthly cost (less than $3). Take a look at other cloud providers, should offer free Tier or very low cost as well.
– Tom Melo
I think so, it is somehow possible to do, without even needing to server side. Based on the ability to edit a file from Github itself via their API. Or send a message via
Messenger
for yourself using the Facebook API. The problem is that as everything is serviced statically, then the processing needs to be done in the browser and therefore the information needs to be available to those who download the page (of course, it may be encrypted, but you also need to provide how to decrypt as well)– Jefferson Quesado