Well, this is pretty easy to work in IT if You know the correct tools and their uses. It's a tough job when we need to set up for the project locally; it's nightmare sometimes. What if you couldn't run the project properly, and need to struggle with a lot of dependencies?
So here is the solution:
Lando is an amazing tool and it's so handy; just a few commands and you are ready to run your project locally or set up a new project on your machine.
It's open source built on Docker. I assume that many developers know this amazing tool, it is trending and most of the developers use it.
Requirements
Choose this file docker-compose-Windows-x86_64.exe from the link.
Note
:
Lando gives the option to install docker at the same time while you run the Lando installation file(however you need to configure docker after that, if you have already docker installed then don't choose the option and complete the installation.)
Install Lando from the downloaded file by double-clicking it and complete the process.
Step 2: Open CMD Terminal
Create a directory for your project and then
-
lando init //
inside your project directoryChoose from given options (from where you want Lando to download or clone your codebase like from GitHub, pantheon, or langoon)
Basically, choose the place where Lando downloads your codebase and initiate .lando.yml file for it. If you have already downloaded your codebase then go to that project and follow the step again but this time choose "current working directory" from the given options.
Once you've done the above option, choose a recipe for your project like WordPress or Laravel, etc. (know which recipe your project has built-in).
Then:
lando start //
under the main project directoryIt'll give you a local server and database server to run your project locally
If you see BOOMSHAKALAKA on your terminal, you are good to go and can run the project.
To check what servers on which your project is running, go to docker dashboard->see your project webroot name->click the arrow to view.