Skip to content

KhawarMehfooz/blogpedia-laravel

Repository files navigation

Blogpedia - A Laravel-based Blogging Website

About Blogpedia

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.

Setup this Locally on Windows

  • Installations

    • Xampp
    • Composer
  • Clone the repo

    Clone this repo to C:\xampp\htdocs on windows

  • Install Dependencies using Composer

    Open termimal and run composer install

  • Install Node Modules

    • Run npm install Command
    • Run npm run dev or npm run watch to compile resouces
  • Copy the .env.example file to .env:

    cp .env.example .env

  • Generate an application key:

    php artisan key:generate

  • Setup Database

    • 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.
  • Setup File uploading

    • Open terminal and run php artisan storage:link
  • Start the Xampp Server

    Open browser and go to localhost/blogpedia/public

  • Setup Virtual host on Windows (Optional)

    • 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>
    
    • Now open notepad as adminstrator

      • 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

License

The Laravel framework is open-sourced software licensed under the MIT license.