How to Install Bagisto on Windows 10

Bagisto is an open-source eCommerce platform developed for the purpose of building cutting-edge online stores. This tutorial will guide you on how to install Bagisto on Windows 10 machine.

Prerequisites

Before proceeding with the installation of Bagisto:

  • Install XAMPP on your Windows machine.
  • Install Composer on your Windows machine.

Steps to Install Bagisto on Windows 10

Follow the steps given below to install Bagisto on your Windows 10 machine:

Step 1: Download and Extract the Bagisto Files

  • Visit the Bagisto website and download the latest available version of Bagisto.
  • Extract the downloaded file in the htdocs folder of your XAMPP installation directory. The default location is C:\xampp\htdocs.

Step 2: Install Dependencies

Next, you need to install the dependencies required by Bagisto. Follow the steps given below to install the dependencies:

  • Open the Command Prompt and navigate to the Bagisto folder using the cd command, i.e., cd C:/xampp/htdocs/bagisto.
  • Run the following command to install the dependencies:
composer install
  • This process may take a few minutes to complete. When done, you should see a vendor folder in your Bagisto folder.

Step 3: Configure Database

Now, we need to configure the database for Bagisto to work. Follow the steps given below to configure the database:

  • Open your favorite browser and visit phpMyAdmin at http://localhost/phpmyadmin/.
  • Create a new database for Bagisto by clicking on the New button in the left menu and giving it a name.
  • Next, open the .env file located in the Bagisto folder.
  • In the .env file, update the database configuration details to match your newly created database:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=root
DB_PASSWORD=
  • Save the changes and close the .env file.

Step 4: Generate Key

Run the following command to generate the key for your Bagisto application:

php artisan key:generate

Step 5: Run Migrations

Next, we need to migrate the required tables to our database. Follow the steps given below to run the migration:

php artisan migrate
  • This process may take some time to complete as it creates the necessary tables and data structures for Bagisto.

Step 6: Run the Application

Finally, let's test if our application is running correctly. Follow the steps given below to run the application:

  • Open the Command Prompt and navigate to the Bagisto folder using the cd command, i.e., cd C:/xampp/htdocs/bagisto.
  • Run the following command to start the server:
php artisan serve
  • Open your favorite browser and visit http://localhost:8000/. You should now see the Bagisto installation page.

Congratulations! You have successfully installed Bagisto on your Windows 10 machine.