DEV Community

Discussion on: How to use MySql database on github.io

Collapse
 
nathn profile image
Nathan

Github pages only allow for static content, so you'd have to use something like Firebase in order to get a database. I am not very experienced with free hosting but I know that a lot of these platforms are pretty bad and will try to display ads on your site. That's why I recommend you to take a real hosting plan (around $2 per month) or to switch to Firebase (can take a lot of time to recode since this is a no-SQL database)

Collapse
 
ben profile image
Ben Halpern

Yeah, it would either need to compile to static at build time— or an async call to the database for custom data directly from the DB