> For the complete documentation index, see [llms.txt](https://docs.spurtcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spurtcommerce.com/getting-started/development-and-setup/api-setup.md).

# API Setup

Please ensure that [<mark style="color:blue;">Prerequisites</mark> ](/getting-started/prerequisites.md)have been installed before proceeding with the API Setup

**Step 1** - Extract Source code, you will find api folder, then open your project directory terminal and give below commands

> ```
> $ npm install
> ```

**Step 2** - Set up [<mark style="color:blue;">Environment configuration</mark>](broken://pages/NLb51xsRBPfK2hVPdikQ)

**Step 3** - Import Spurtcommerce.sql(which is in your api folder) in your database and give username,password, database name in `.env file`.

**Step 4-** To run the project give the following command in your terminal

> ```
> $ npm start serve
> ```

{% hint style="info" %}
To build the Spurtcommece api for the server deployment, run the following command in project directory

```
$ npm run build
```

{% endhint %}
