nooriemad08 after the composer command, either configure your DocumentRoot to point to public as explained in the installation page or follow https://flarum.org/docs/install.html#customizing-paths to remove the public folder if you can't use that option.
Then you can open the url and follow the installation page.
You should also read the other sections of the installation page, they might be relevant to your setup.