# Deployment Using Builds

This article provides detailed instructions on how to install the build files for Spurtcommerce Backend APIs and all associated frontend panels, including the Store Panel, Vendor Panel, and Admin Panel.

#### Infrastructure pre-requisites:

Before diving into the installation process, ensure that your local or server environment meets the necessary infrastructure prerequisites. These include installations for [Node.js](https://www.spurtcommerce.dev/getting-started/prerequisites/set-up-development-environment#nodejs-installation)<mark style="color:blue;">,</mark>[ <mark style="color:blue;">MySQL setup</mark>](https://www.spurtcommerce.dev/getting-started/prerequisites/set-up-development-environment#mysql-setup),[ <mark style="color:blue;">Apache installation</mark>](https://www.spurtcommerce.dev/getting-started/prerequisites/set-up-development-environment#apache-installation)<mark style="color:blue;">,</mark> and [<mark style="color:blue;">ImageMagick installation</mark>](https://www.spurtcommerce.dev/getting-started/prerequisites/set-up-development-environment#imagemagick-installation) if you are installing Spurtcommerce build in local.

In case, if you are setting these builds in your server, please refer the complete guide [<mark style="color:blue;">here</mark> ](https://www.spurtcommerce.dev/getting-started/prerequisites/set-up-development-environment)

#### Preliminary Step:

Clone the Git repository that contains the Spurtcommerce build from [<mark style="color:blue;">here</mark>](https://github.com/spurtcommerce/multivendor-marketplace) using the “*git clone*” command.

```
$ git clone https://github.com/spurtcommerce/multivendor-marketplace.git
```

Open your terminal and navigate to the directory where the repository has been cloned. You should see the directory by the name “multivendor-marketplace ”. This confirms that the Spurtcommerce frontend and backend builds have been successfully pulled from the GIT repository.  You can now use these builds to setup Spurtcommerce Marketplace Solution in your local (or) server.

#### Steps to deploy Backend API build:

#### Step 1:

Navigate to the cloned repository directory “multivendor-marketplace” in the terminal and locate the "api" and "frontend" folders.

#### Step 2:

Navigate to *multivendor-marketplace/api* folder and Install node\_modules  by executing the following command

```
$ npm install
```

It will take few mins for the npm installation to get finished and once done you will see the completion notification messages in terminal.

#### Step 3:

Retrieve the "*spurtcommerce\_marketplace.sql"* file from the "/api" folder and import it into your MySQL server.

#### Step 4:

Configure the database settings in the ".*env"* file located in the "/api" folder, with the name and credentials for the application to connect to your database (imported from spurtcommerce\_marketplace.sql)

&#x20;

#### Database Configuration

we are using MySQL database, we need to configure database credentials in the .env file&#x20;

```
#
# MySQL DATABASE
#
TYPEORM_CONNECTION=mysql
TYPEORM_HOST=localhost
TYPEORM_PORT=3306
TYPEORM_USERNAME= "testuser"             #--Your MySql Username
TYPEORM_PASSWORD= "spurt123&"		#--Your MySql Password 
TYPEORM_DATABASE= "spurt_commerce"	#--Your Database Name
TYPEORM_SYNCHRONIZE=false
TYPEORM_LOGGING=["query", "error"]
TYPEORM_LOGGER=advanced-console
```

#### Step 5:

Optionally, you could modify certain additional parameters to point to your own configurations such as (a) send/receive emails (2) AWS S3 storage bucket etc.

Please use the guidelines mentioned [<mark style="color:blue;">here</mark>](< https://www.spurtcommerce.dev/getting-started/development-and-setup/environment-configuration>)&#x20;

#### Step 6:

In terminal, Navigate to *multivendor-marketplace/api* folder and Start API execution using the following command:

```
$ node dist/src/app.js
```

Above steps concludes successful installation and setup of Spurtcommerce backend api build.

#### Steps to deploy front end build:

#### Step 1:

Navigate to "*/var/www/html"* (assuming Apache installation has created this directory) from your home directory in your local or server

#### Step 2:

1\. Copy the "vendor" and "admin" folders as-is directly from "*multivendor-marketplace/frontend*/" to "*/var/www/html/*".

2\. Copy all folders & files of “store” folder from *multivendor-marketplace/frontend/ folder* and paste it directly into */var/www/html/*

Completion of above steps should successfully setup frontend builds of all 3 panels of Spurtcommerce Marketplace solution such as Store Panel, Vendor Panel and Admin Panel.

Verify the directory structure in "*/var/www/html/*" for a successful setup.

&#x20;                               <img src="/files/hi9ztWQOwgAEyZ95dbYo" alt="" data-size="original">

&#x20;

#### Launch Spurtcommerce in your local (or) server:

Check that the Spurtcommerce marketplace application is ready to use from <mark style="color:blue;">http\://{your-domian or IP}:{your-port}</mark> (or) <mark style="color:blue;"><http://localhost:3000/></mark>

Vendor Panel can be accessed by <mark style="color:blue;">http\://{your-domian or IP}:{your-port}/vendor/#/auth/login</mark> and Admin panel be accessed by <mark style="color:blue;">http\://{your-domian or IP}:{your-port}/admin/#/auth/login</mark>

**Admin panel** **- Default credentials:**

**username:** <marketplace@spurtcart.com>&#x20;

**password:** Piccosoft2012

Above steps concludes successful installation and setup of Spurtcommerce Marketplace solution build in your local (or) server.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spurtcommerce.com/getting-started/development-and-setup/deployment-using-builds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
