This guide requires 5 steps to be completed in sequence:
Before setting up, make sure you have installed the libraries required to build the PHP. The list of these libraries can be found here: for Linux and macOS.
Also, make sure to install Docker and PHPBrew in your system.
# make sure dependencies are installed !!!npx create-magento-app my-appcd my-appnpm start
This command will start Docker services, start PHP and open your favorite browser with Magento 2 store.
Create Magento App choose an available port for Magento 2 so it can vary. By default, it will use port 80 so the URL for the store will be http://localhost:80/.
<aside> 🚨 Make sure your Node version is up to date!
You’ll need to have Node >= 12 on your local development machine (but it’s not required on the server). You can use n (macOS, Linux) or nvm-windows to switch Node versions between different projects.
</aside>
To create a new app, you may choose one of the following methods:
npx create-magento-app my-app