> For the complete documentation index, see [llms.txt](https://gnosza.gitbook.io/substrate-blockchain-starter-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gnosza.gitbook.io/substrate-blockchain-starter-kit/developer/backend/local-deployment.md).

# Local Deployment

{% hint style="info" %}
The build step might fail if you're using a computer with an Apple Silicon chip. In that case, we recommend you start the project using [Docker deployment](/substrate-blockchain-starter-kit/developer/backend/docker-deployment.md)
{% endhint %}

1. Run `yarn` to install dependencies
2. Setup the postgres database: `createdb <your_database_name>`
3. Build the project
   * Windows: `yarn windows:build`
   * Mac/Linux: [![](http://localhost:63342/markdownPreview/2142450512/commandRunner/run.png)](http://localhost:63342/markdownPreview/2142450512/markdown-preview-index-109625572.html?_ijt=bcl06iqf72mg5dhj1k4iafjui2#)`yarn build`
4. Run migrations
   * Windows: `yarn windows:migrate`
   * Mac/Linux: `yarn migrate`
5. Run seeders
   * Windows: `yarn windows:seed`
   * Mac/Linux: `yarn seed`
6. After everything has been completed, to run the app, use the `yarn dev` command for dev environment or [![](http://localhost:63342/markdownPreview/2142450512/commandRunner/run.png)](http://localhost:63342/markdownPreview/2142450512/markdown-preview-index-109625572.html?_ijt=bcl06iqf72mg5dhj1k4iafjui2#)`yarn start` for production build
