Magento can be setup in 4 different ways, here i'm touching just the 4th - through composer. Composer create project, the final parameter is where it will be installed Magento. In my case "./", it is in the current directory.
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition ./
During installation I got a series of problems, I'll try to add them between steps so you know what…