Server Installation
Here’s all the different ways you can download and install the server binary
Go Install
The simplest way to install Pockets if you have Go installed is to use the go install
command:
go install github.com/matfire/pockets/server@latest
This will download and compile the latest version of the server binary and install it in your $GOPATH/bin
directory.
Build from Source
If you want to build from source, you can clone the repository and use the provided Makefile:
# Clone the repositorygit clone https://github.com/matfire/pockets.gitcd pockets
# Build the server binarymake build/server
The binary will be created in the root directory of the project.
Github Releases
You can download pre-built binaries from the GitHub releases page. Choose the appropriate binary for your operating system and architecture.
After downloading:
- Extract the archive if necessary
- Move the binary to a location in your system PATH (optional)
- Make the binary executable (Unix-based systems only):
Terminal window chmod +x ./pockets
Homebrew
If you’re on macOS or Linux, you can install Pockets using Homebrew:
brew install matfire/matfire/pockets
The server binary will be installed and available in your system PATH.
Configuration
For detailed configuration options and examples, please refer to the Server Configuration documentation.
Basic configuration can be done using either:
- A configuration file (
pockets.yaml
orpockets.toml
) in the current directory - Environment variables prefixed with
PKTS_
Default configuration values:
- Port: 3000
- Admin User: [email protected]
- Admin Password: test1234