As the title suggests, I’m using Firebase Hosting to host a simple portfolio website that I wish to hand over to a client. The client has to be able to add/delete/update the title of the projects in the portfolio, the images/videos/links in each project, some pieces of text and also be able to delete the entire project (an entire div in this case). Would Vapid work in this scenario?
@yashghelani I’m not entirely sure, but my guess is that Firebase wouldn’t work as a hosting solution. For a couple of reasons:
- From what I understand, Firebase hosting uses cloud functions (i.e., runs everything from an index.js file or the like). Vapid assumes that you’ll have access to the
vapidexecutable to run
vapid startfor hosting—I don’t think Firebase hosting allows this.
- Vapid requires that you use a Sequelize-compatible database (http://docs.sequelizejs.com/manual/usage.html#dialects), and Firebase isn’t one of the supported adapters. Technically, you could run your site on the default SQLite database (the one Vapid uses in development), but I don’t think you’d want to run that sort of DB in production.
Thanks for the help @scott I really appreciate it
I’m considering glitch.com as a solution to my problem. Since it supports Vapid, I’ll set up a simple CMS there, hook it up to a custom domain and hand over the website to my client. Do you think that would work?
@yashghelani I wouldn’t recommend Glitch for a production website. The sites go to sleep if they’re not being used, which would be probably be a bad experience for your client’s visitors.
If you’re comfortable setting up your own server, I’d recommend checking out DigitalOcean (tutorial).
If you’re not comfortable setting up your own server, or would like a ready-made solution, you can checkout Vapid’s own hosting service (https://www.vapid.com/ – signup for a free account and issue a
vapid deploy command). Note: Vapid’s hosting is a paid service, starting at $7 a month.
Hope that helps.
I recommend using Digital Ocean for production, they even have managed databases using Postgresql now. You can be and running on a $5 droplet no problem
@scott How about using https://uptimerobot.com/ to hit the website every couple of minutes to keep it awake? I don’t mind paying for a hosting service but it’ll be great if it’s a free solution as the client websites are really simple.
Also, can you share more details about Vapid’s hosting service? Like how many websites under one plan, storage limit, bandwidth limit, et cetera.
Thanks for all your help. I really appreciate it