dsfx/docs/operating/installing.md

53 lines
1.9 KiB
Markdown
Raw Normal View History

2025-03-24 18:54:08 -04:00
# Installing
2025-03-21 22:02:51 -04:00
2025-03-24 18:54:08 -04:00
This document describes how to install the dsfx server on your machine. The
dsfx server is a decentralized file exchange server that allows you to share
files with other users in a secure and private way. The server is designed to
be easy to install and configure, and it can be run on a variety of platforms.
The server is written in Go, and it uses the Go toolchain for building and
installing. The server is designed to be run as a standalone application, and
it does not require any external dependencies.
2025-03-24 18:21:00 -04:00
- [Setup](#setup)
- [Dependencies](#dependencies)
- [Git Setup](#git-setup)
2025-03-24 18:54:08 -04:00
- [Installation](#installation)
2025-03-24 18:21:00 -04:00
---
## Setup
2025-03-22 11:07:13 -04:00
2025-03-24 13:35:08 -04:00
Due to the maturity of the project, we haven't yet created a release strategy.
2025-03-24 18:21:00 -04:00
We have, however, fully embraced the go ecosystem - so you can use the go
toolchain to install the project from source. This is the recommended way to
install the project, as it will always give you the latest version of the code.
2025-03-22 11:07:13 -04:00
2025-03-24 13:35:08 -04:00
### Dependencies
2025-03-22 11:07:13 -04:00
2025-03-24 18:21:00 -04:00
- [git](https://git-scm.com/)
- [golang](https://go.dev/)
2025-03-22 11:26:56 -04:00
2025-03-24 18:21:00 -04:00
In many cases, these tools are available in your system package manager. Here
are a few commands for various operating systems (not comprehensive):
- **Ubuntu**: `sudo apt-get install git golang`
- **Fedora**: `sudo dnf install git golang`
- **Arch**: `sudo pacman -S git go`
- **macOS**: `brew install git go`
If the above commands don't work for you, please refer to the official
documentation for your operating system.
2025-03-22 11:26:56 -04:00
2025-03-24 18:54:08 -04:00
### Installation
2025-03-22 11:26:56 -04:00
2025-03-24 13:35:08 -04:00
Now that you have the go toolchain set up with access to our repository, you can simply install the
project by using the `go install` command.
```bash
2025-03-25 15:24:26 -04:00
go install numenor-labs.us/dsfx/dsfx/cmd/dsfx@main
2025-03-24 13:35:08 -04:00
```
2025-03-22 11:26:56 -04:00
2025-03-24 18:54:08 -04:00
Assuming that you have the `GOPATH` environment variable set up correctly, you will now be able to
run the `dsfx` command from the command line. If you are not able to, then you must configure your
`GOPATH` environment variable.