Skip to content

Defacto2/server

Repository files navigation

Defacto2, website software

Go Reference License Go Report Card

      ·      ▒██▀ ▀       ▒██▀ ▀              ▀ ▀▒██             ▀ ▀███ ·
      : ▒██▀ ▓██ ▒██▀▀██▓ ▓██▀▀▒██▀▀███ ▒██▀▀██▓ ▓██▀ ▒██▀▀███ ▒██▀▀▀▀▀ :
 · ··─┼─▓██──███─▓██─▄███─███──▓██──███─▓██──────███──▓██──███─▓██──███─┼─·· ·
      │ ███▄▄██▓ ███▄▄▄▄▄▄██▓  ███▄ ███▄███▄▄███ ███▄▄███▄ ███▄███▄▄███ │
· ··──┼─────────··                defacto2.net               ··─────────┼──·· ·
      │                                                                 :

The Defacto2 website is a self-contained application first devised in 2023. It is built with the Go language and can be easily compiled for many platforms and operating systems.

All configurations are optional and any changes to the defaults are made through system environment variables.

Note

The application uses an optional PostgreSQL database connection for data queries. While optional, you'll need this database running and configured if you wish to browse the artifacts, releasers, and sceners.

Download

There are downloads available for Linux, macOS and Windows.

Installation

No installation is required to play around with the web server.

Note

Currently the artifact screenshots, thumbnails and files are not available for download or display. This due to the additional hosting costs.

Installation for the Debian Package

# download the latest release
$ wget https://github.com/Defacto2/server/releases/latest/download/defacto2-server_linux.deb

# install (or update) the package
$ sudo dpkg -i defacto2-server_linux.deb

# confirm the binary is executable
$ defacto2-server --version

Usage

The web server will run with out any arguments and will be available on the localhost over port 1323.

$ defacto2-server

> ⇨ http server started on [::]:1323

To stop the server, press CTRL+C.

> Detected Ctrl + C, server will shutdown now

Configuration

The application uses environment variables to configure the database connection and other settings. These are documented in the software package documentation.

There are examples of the environment variables in the example .env and the example .service files found in the init/ directory.

Source code

How to use the source code.

About

The Defacto2 website software.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages