Blogpedia is a Laravel-based project that allows users to create, read, update, and delete blog posts. It's just like a regular blogging website.
-
- Xampp
- Composer
-
Clone this repo to
C:\xampp\htdocs
on windows -
Open termimal and run
composer install
-
- Run
npm install
Command - Run
npm run dev
ornpm run watch
to compile resouces
- Run
-
cp .env.example .env
-
php artisan key:generate
-
- Open xampp and create new database named
blogpedia
- Update the database configuration in the
.env
file with your database details. - run
php artisan migrate
command.
- Open xampp and create new database named
-
- Open terminal and run
php artisan storage:link
- Open terminal and run
-
Open browser and go to
localhost/blogpedia/public
-
-
Go to
C:\xampp\apache\conf\extra
-
Edit
httpd-vhosts.conf
-
Paste the following and save the file:
<VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/blog-website-using-laravel/public" ServerName blogpedia.io </VirtualHost>
-
- open file
- Go to
C:\Windows\System32\drivers\etc
- Select all files
- Open
host
file - Paste the following at the end of file:
127.0.0.1 localhost 127.0.0.1 blogpedia.io
- Restart Apache (Xampp)
- Now open browser and type
blogpedia.io
-
The Laravel framework is open-sourced software licensed under the MIT license.