1.1 Installing Locally
Download XAMPP (or WAMP) and install it
Navigate to "htdocs" (in case of XAMPP) or "www" (in case of WAMP) directory. For XAMPP, by default it is located at: "C:\xampp\htdocs".
Inside of "htdocs" or "www", create a new directory, let's call it "webcart"
Copy "webcart.zip" and unzip it in that directory. So, you have files like:
"webcart.zip" is provided inside of the folder named "webcart" in the package.
and so on.
Open ".env" file, and fill in database credentials.
Open XAMPP and start Apache and MySQL server. Then, open your web browser and navigate to:http://localhost/phpmyadmin
Create a new database and name it "laravel_webcart", the same that you named it in ".env" file.
Navigate to "webcart" directory in your terminal or command prompt:
And, run command from this directory:
php artisan webcart:install
Provide email, username and password for Super Admin and confirm. Subsequently, it will generate APP KEY, perform database migration and seeding.
You can also do this by running these commands in order:
php artisan key:generate
php artisan migrate
php artisan db:seed
Or, simply run:
php artisan key:generate
After, you can import "laravel_webcart.sql" to your database using phpmyadmin. The default username for Super Admin is "admin" and default password is "admin". You can change these credentials later.
"laravel_webcart.sql" is provided inside of the folder named "guide" in the package.
Wait for installation to finish. After, you can navigate to http://localhost/webcart/public
in your browser.
1.1.1 Setting up Virtual Host
If you want to use URL like http://webcart.dev
in place of http://localhost/webcart/public
, then you can set up virtual host.
Open "C:\xampp\apache\conf\extra\httpd-vhosts.conf" file in your editor and add these lines at the end and save it:
Also, you need to edit "hosts" file. Copy "C:\Windows\System32\drivers\etc\hosts" file to Desktop and open it in your editor. Add these lines to the end and save it:
Then, copy "hosts" file from Desktop and paste it back to "C:\Windows\System32\drivers\etc". Finally, restart apache server and navigate to http://webcart.local in your browser.
1.1.2 Enabling OpenSSL PHP Extension and other PHP configuration
In your php.ini file which is located inside of directory "C:\xampp\php" in case of XAMPP, uncomment these lines if commented:
Remove ; to uncomment it.
"cacert.pem" is provided inside of the folder named "guide/certificates" in the package. You may place it inside of xampp installation directory and get its path.
Now, open XAMPP and restart Apache server. Then, navigate to http://webcart.dev in your browser. After, you can login with username/email and password.