# Taxido Laravel APIs (CLI)

{% hint style="warning" %}
Note: Before you start, confirm that your system meets the required specifications outlined for setting up the [**Taxido Laravel Requirements**](https://docs.pixelstrap.net/laravel/taxido/laravel-requirment.html)
{% endhint %}

**Getting Started With Taxido Laravel**

**1. Open Taxido\_laravel directory that you downloaded from CodeCanyon.**

<figure><img src="https://docs.pixelstrap.net/laravel/taxido/assets/images/laravelApi/Taxido-laravel-folder.png" alt=""><figcaption></figcaption></figure>

**2. Environment Settings:**

&#x20;Add the required database credentials in **.env** .

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F7ZTgPahPNaP9792mims5%2Fimage.png?alt=media&#x26;token=bd24de0f-38e0-42fc-a551-08f891f31af6" alt=""><figcaption></figcaption></figure>

Add values to the below keys in the **.env** file

If you're running your Laravel project on your own computer (localhost), make sure to use localhost with current running port and put in APP\_URL. as a given example below

If you want to install on live server, you need to add your live server Taxido\_laravel url like a APP\_URL=<http://your-domain.com>.

```html
APP_URL=http://localhost:8000
                  DB_DATABASE=database_name
                  DB_USERNAME=database_username
                  DB_PASSWORD=database_password
```

{% hint style="warning" %}
Note: Make sure to set the APP\_URL correctly. If you don't, features like uploading, downloading, and showing images won't work properly. Be sure to double-check and make sure everything is set up correctly.
{% endhint %}

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FCEcmKbfavOnrWzfOLQBS%2Fimage.png?alt=media&#x26;token=14685b42-6d7e-4c9a-932e-880b4885f939" alt=""><figcaption></figcaption></figure>

**3. Install Required Dependencies:**

In the Taxido\_laravel folder, run following command in the terminal to install the required dependencies.

```html
composer install 
```

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2Fm1cRzQ3NC7dVHBRIzD84%2Fimage.png?alt=media&#x26;token=6db91d3c-f54d-4aca-bd3c-08b4a563f7ed" alt=""><figcaption></figcaption></figure>

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FoLm2aUWVgSRGLkTb88S7%2Fimage.png?alt=media&#x26;token=aae49a81-1dc6-4df1-8c67-4aedee9dae59" alt=""><figcaption></figcaption></figure>

**4. Generate Laravel APP KEY:**

Once the necessary dependencies are successfully installed, run following command to generate laravel app key.

```html
php artisan key:generate
```

**5. Installation of Taxido:**

**Note:** If you've previously run following command or migrated tables, be aware of the fact that it will erase all of your data.

Then, run following command to install Taxido database table.

```html
php artisan web:install
```

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2Fy0AHBVeClDB6jBUAEa7A%2Fimage.png?alt=media&#x26;token=b02beee3-c525-4907-929b-176d334dd25d" alt=""><figcaption></figcaption></figure>

During the installation, you'll be asked two questions:

1\. Do you want to continue with the installation? If you say yes, Taxido will continue to install.

2\. Do you want to import in sample data? If you say yes, the sample data will be imported. If you say no, the installation will go ahead without adding any sample data.

**6. Link Storage folder to Public folder:**

Then, run following command to store and display images correctly.

```html
php artisan storage:link
```

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2Fb9kZ6TMZ771HdnhhfIZ6%2Fimage.png?alt=media&#x26;token=3e1be4a8-6cae-4700-8188-96301b2bf526" alt=""><figcaption></figcaption></figure>

**7. Building Assets and SCSS:**

**Note:** Please make sure you've installed NodeJs. If you haven't installed, you can easily do by following this link: [Link to Laravel Prerequisites.](https://docs.pixelstrap.net/laravel/taxido/laravel-requirment.html#nodejs)

&#x20;To set up and compile your assets and SCSS files, follow these steps:

First, you need to install the necessary Node modules.

```html
npm i
```

Compile assets and scss by running below command.

```html
npm run build
```

&#x20; Use the command below to start the development server with hot reload, allowing you to see changes instantly without refreshing the browser.

```html
npm run dev
```

**8. Run Taxido Laravel:**

Once you've finished all the previous steps, you can run the Taxido Laravel by adding following command.

```html
php artisan serve
```

When you start your Taxido Laravel project, it typically runs on the default port, you can access it by opening [127.0.0.1:8000 ](http://127.0.0.1:8000/)in your web browser.

**9. Verify Taxido Purchase License Code:**

&#x20;Before using the Taxido Laravel, it's important to verify your Envato purchase code.

Enter in your Envato username and the Taxido purchase code and click next button.

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2Frt4ENLDGhS0iSczv7l6X%2Fimage.png?alt=media&#x26;token=16230819-53b2-46ce-81b3-3c657b1d458d" alt=""><figcaption></figcaption></figure>

If you don't know where to find your purchase code, click here: [Where Is My Purchase Code?](https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code)

{% hint style="warning" %}
**Note:** Once a license is verified, it can't be used for another project. An envato purchase code can only be verified on one domain at a time.
{% endhint %}

<figure><img src="https://docs.pixelstrap.net/laravel/taxido/assets/images/laravelApi/vps/clipboard-image%20(1).png" alt=""><figcaption></figcaption></figure>

Congratulations, Taxido has been successfully installed and configured in your system!🎉

For Postman API Documentation [Click Here](https://documenter.getpostman.com/view/23370213/2sAYk7RP4s).

Here are some common solutions if your project isn't running successfully:

* Ensure you're using the latest version of PHP, Composer and Node.js.
* Try deleting the "node\_modules" folder and "package-lock.json" file, then run npm install again.
* If the problem persists, consider re-downloading the theme from Codecanyon and retrying.
* If none of these steps work, you can create a support ticket for assistance.
