The META+LAB IMMERSIVE is a 2 week boot-camp with the aim of teaching participants the basics of web development. It is composed of 3 tracks: Front End which includes UI/UX, Back End with an emphasis on Laravel, and Operations with an accredited AWS Solutions Architect lecturer.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
If you don't feel like reading, Laracasts can help. Laracasts contains over 1400 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
Before we begin, your development machine must have the following dependencies installed:
- Git or GitHub Desktop
- Docker with Docker Compose
- A Text Editor or IDE of your choice:
- Atom
- SublimeText
- Brackets
- Notepad++
- PhpStorm
Once all of the dependencies are met we can get started by cloning the repository into any directory. To achieve this fire up your favorite command-line application and issue $ git clone https://github.com/luisjg/immersive.git
. This will make an immersive
directory on your machine. Once you successfully complete this step you can continue on to the next section.
The final step for the project initialization is to set our .env
values. First we have to make a copy of the .env.example
file and save it as .env
. Make sure that it is a copy, renaming the .env.example
to .env
is not the correct way of doing things. Next we want to open the .env
file with our favorite text editor and locate the following section:
# small snippet from .env file
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
Here we're going to set the values to our MySQL Docker configuration found in docker-compose.yml
file:
# these values should now be on your .env file
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=immersive
DB_USERNAME=immersive
DB_PASSWORD=immersivepass
Once we have done these changes we can now continue on to the Starting your Docker environment section.
To start your docker environment please follow the next steps.
- Open your favorite command-line interface application such as Terminal for macOS or Powershell for Windows.
- Change directory into the
immersive
folder. - To start your docker environment execute the following command:
docker-compose up -d
. - To enter your container execute the following command:
docker exec -it immersive /bin/bash
. - To exit your container simply type
exit
. - To shutdown your containers execute the following command:
docker-compose down
.
To see your website, open up your internet browser and go to http://localhost:8080
.
To access adminer, open up your internet browser and go to http://localhost:8081
.
Note: When we run docker-compose up -d
to start our containers for the very first time, it will take a little while for us to see anything when we visit http://localhost:8080
that is because all of the Laravel dependencies are being installed for the very first time. Please be patient!
To use composer make sure that you use the right container which has the composer.json file.
- Enter your container using the following command:
docker exec -it immersive /bin/bash
. - Install dependencies by executing the following command:
composer install
.
To use artisan make sure that you use the right container.
- Enter your container using the following command:
docker exec -it immersive /bin/bash
. - Run your desired artisan commands by executing the following command on your favorite terminal:
php artisan
.
The Laravel framework is open-source software licensed under the MIT license.