@Cookie
You can use Flarum on free hosting but it's a tough task.
You will need SSH access and Composer to install Flarum, and free hosting does not have the feature.
So, first, you need to install Flarum using composer on your localhost, then upload all the generated files and database on the free hosting. Change the database settings on the Flarum Configuration file to connect with the free hosting.