SaasCart API Installation

Before you start, confirm that your system meets the required specifications outlined for setting up the SaasCart API.

Getting Started with SaasCart API

1. Open SaasCart API Directory

Navigate to the saascart-api directory that you downloaded from CodeCanyon.

2. Environment Settings

  • Change the values to the following keys in the .env file:

If you’re running your Laravel project locally (localhost), use localhost with the current running port in APP_URL. For example:

  • APP_URL=http://localhost:8000
  • DB_DATABASE=saascart
  • DB_USERNAME=root
  • DB_PASSWORD=database_password
Ensure APP_URL is set correctly. Incorrect configuration may affect features like uploading, downloading, and displaying images. Double-check to ensure accuracy.

3. Install Required Dependencies

In the saascart-api folder, run the following command to install the required dependencies:

composer install

4. Generate Laravel App Key

Once the necessary dependencies are installed, generate the Laravel app key by running:

php artisan key:generate

Run the following command to link storage and display images correctly:

php artisan storage:link

6. Run SaasCart API

Once you’ve completed the previous steps, start the SaasCart API by running:

php artisan serve

The API will run on the default port, accessible at 127.0.0.1:8000 in your web browser.


Congratulations

🎉 SaasCart has been successfully installed and configured on your system!

To proceed with setting up the SaasCart Next.js frontend, follow the instructions in the SaasCart Next.js Frontend Installation Guide.