-
Clone the project
git clone https://github.com/sukanta7660/laravel-vue-blog.git
-
Go to project folder by entering
cd laravel-vue-blog
command -
Install composer following by this command:
composer install --ignore-platform-reqs
-
Install npm following by this command:
npm install
-
Compile the vue components by this command:
npm run watch
-
Copy
.env.example
file to.env
on the root folder. You can typecopy .env.example .env
orcp .env.example .env
using terminal in laravel-vue-blog directory. -
Open your database XAMPP / LAMP / HeidiSQL (Whatever you use). Create a new database with any database name.
For Example: blog
Open your.env
file and change the database nameDB_DATABASE
to whatever you have, usernameDB_USERNAME
and passwordDB_PASSWORD
field correspond to your configuration. By default, the username isroot
and you can leave the password field empty. (This is for Xampp). By default, the username isroot
and password is alsoroot
. (This is for Lamp). -
Now run following commands on terminal:
php artisan key:generate
php artisan optimize:clear
- You need to run following command for migrating the databases.
For Migrating Database:
php artisan migrate --seed
- Now run this command
php artisan serve
. Then open browser and go tohttp://localhost:8000