2019-02-17 19:53:04 +00:00
---
2022-10-01 15:30:20 +00:00
date: "2022-09-21:00:00+02:00"
2019-02-17 19:53:04 +00:00
title: "Build from sources"
draft: false
type: "doc"
menu:
sidebar:
parent: "setup"
---
# Build Vikunja from source
2021-11-28 11:56:46 +00:00
To completely build Vikunja from source, you need to build the api and frontend.
{{< table_of_contents > }}
## API
2022-10-01 15:30:20 +00:00
The Vikunja API has no other dependencies than go itself.
2021-11-28 11:56:46 +00:00
That means compiling it boils down to these steps:
2019-02-17 19:53:04 +00:00
2023-04-03 10:07:50 +00:00
1. Make sure [Go ](https://golang.org/doc/install ) is properly installed on your system. You'll need at least Go `1.19` .
2022-04-18 19:00:46 +00:00
2. Make sure [Mage ](https://magefile.org ) is properly installed on your system.
2021-11-28 11:56:46 +00:00
3. Clone the repo with `git clone https://code.vikunja.io/api` and switch into the directory.
2023-04-03 10:07:50 +00:00
4. Run `mage build` in the source of this repo. This will build a binary in the root of the repo which will be able to run on your system.
2020-02-15 10:35:24 +00:00
2021-11-28 11:56:46 +00:00
### Build for different architectures
2019-02-17 19:53:04 +00:00
2020-09-03 15:18:41 +00:00
To build for other platforms and architectures than the one you're currently on, simply run `mage release:release` or `mage release:{linux|windows|darwin}` .
2019-02-17 19:53:04 +00:00
2021-11-28 11:56:46 +00:00
More options are available, please refer to the [magefile docs ]({{< ref "../development/mage.md">}} ) for more details.
## Frontend
The code for the frontend is located at [code.vikunja.io/frontend ](https://code.vikunja.io/frontend ).
2022-10-01 15:30:20 +00:00
1. Make sure you have [pnpm ](https://pnpm.io/installation ) properly installed on your system.
2022-09-23 10:26:42 +00:00
2. Clone the repo with `git clone https://code.vikunja.io/frontend` and switch into the directory.
3. Install all dependencies with `pnpm install`
2022-10-01 15:30:20 +00:00
4. Build the frontend with `pnpm run build` . This will result in a static js bundle in the `dist/` folder which you can deploy.