Unzip and open the folder of the Laravel template with your favourite editor (I am using VSCode).
Setup your .env config file
Make sure to add the database configuration in your .env file such as database name, username, password and port.
Install Laravel dependencies
In the root of your Laravel application, run the
php composer.phar install (or
composer install) command to install all of the framework’s dependencies.
Migrate the tables
In order to migrate the tables and setup the bare minimum structure for this app to display some data you shoud open your terminal, locate and enter this project directory and run
php artisan migrate.
Once you have all your database tables setup you can then generate some test data which will come from our pre-made database table seeders.
In order to do so, in your terminal run
php artisan db:seed.
truncatethe following tables in your database:
Launch the back-end
In order to make this Laravel installation work properly on your local machine you can run
php artisan serve
You should receive a message like this:
Starting Laravel development server: http://127.0.0.1:8000 simply copy the URL in your browser and you’ll be ready to test out your new Mosaic Laravel app.
Compile the front-end
In order to compile all the CSS and JS assets for the front-end of this site you need to install NPM dependencies. To do that, open the terminal, type
npm install and press the
npm run dev in the terminal to run a development server to re-compile static assets when making changes to the template.
When you have done with changes, run
npm run build for compiling and minify for production.