How to Install S-Cart on macOS
S-Cart is a free e-commerce platform for online businesses. If you want to install S-Cart on your macOS machine, follow the steps below:
Prerequisites
- macOS
- XAMPP or MAMP (or any other similar software)
- Web Browser
- Terminal
Installation Steps
- First, download the latest version of S-Cart from https://s-cart.org/download/
- Extract the downloaded
s-cart.zipfile into your web server document root folder e.g./Applications/XAMPP/htdocsor/Applications/MAMP/htdocs - Open the terminal application and navigate to the extracted
s-cartdirectory inside your document root folder
cd /Applications/XAMPP/htdocs/s-cart
- Change the permission of the following files and directories to be writable:
chmod -R 777 app/storage
chmod -R 777 public/assets
chmod -R 777 extensions
- Create a new
.envfile using the following command:
cp .env.example .env
- Generate the application key by running the following command:
php artisan key:generate
- Open the
.envfile and update the following database details:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
Save and close the file.
- Run the following command in the terminal to install the necessary PHP packages:
composer install
- Run the following command to migrate the database:
php artisan migrate
- After the migration is done, you can start the S-Cart by running the following command:
php artisan serve
- Open your web browser and navigate to http://localhost:8000 to access the default S-Cart login page.
Congratulations! You have successfully installed S-Cart on macOS. You can now start creating your online store.