Does Contact Page work on Github Pages?

Asked

Viewed 232 times

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

inserir a descrição da imagem aqui

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?

  • 1

    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).

  • 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?

  • 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.

  • 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)

1 answer

1

The purpose of Github Pages is to serve as a repository for documentation of code hosted on Github, using markdown files, which are transformed into static files. The idea is not to have a space for approval of an application and not even a hosting, even if it is possible to make one using SPA, Single Page Application.

If you are developing an application and validate it, use some of the cloud services such as Azure or AWS, which offer a monthly consumer value for a period of one year for new accounts. The first can be accessed by this link Azure.com/free.

If it’s too complicated right now, there are even simpler services, for example: Heroku.com.

  • Very good tip, thanks for the links =) actually, as the projects are static I thought I could use the github pages, there is no processing type, until I remember that there are contact pages.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.