direlex

module
v0.0.0-...-65189f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: AGPL-3.0

README

Diccionari de recursos lexicals

Catalan version available below / Versió en català disponible a continuació

Source code for the online version of the Diccionari de recursos lexicals (DIRELEX).

Dependencies

Option 1: Docker execution
  • Docker Compose
Option 2: Native compilation with Go
  • Go

Build and execution

Static mode

The website can be generated as a 100% static site and served with Caddy:

docker compose -f deploy/docker-compose.static.yml up
Go server mode (development)
Option 1: Docker
docker compose up
Option 2: Native Go
go run ./cmd/build-assets
go build -o direlex ./cmd/server
./direlex

Alternatively, you can use make start as a shortcut. Run make to see all available commands.

Copyright (c) Pere Orga Esteve pere@orga.cat, 2025.

The source code of this project is distributed under the AGPL-3.0 license or later.

Dictionary data

Copyright (c) 2025 Carles Castellanos i Llorenç, Agustí Mayor i Lloret.

The dictionary data included in this repository is subject to a different license than the source code: CC BY-NC 4.0.


Diccionari de recursos lexicals

Codi font de la versió en línia del Diccionari de recursos lexicals (DIRELEX).

Dependències

Opció 1: execució amb Docker
  • Docker Compose
Opció 2: compilació nativa amb Go
  • Go

Compilació i execució

Mode estàtic

El lloc web es pot generar com un lloc 100% estàtic i servir-lo amb Caddy:

docker compose -f deploy/docker-compose.static.yml up
Mode servidor Go (desenvolupament)
Opció 1: Docker
docker compose up
Opció 2: Go natiu
go run ./cmd/build-assets
go build -o direlex ./cmd/server
./direlex

També podeu utilitzar make start com a drecera. Executeu make per veure totes les ordres.

Copyright (c) Pere Orga Esteve pere@orga.cat, 2025.

El codi font d'aquest projecte es distribueix amb la llicència AGPL-3.0 o superior.

Dades del diccionari

Copyright (c) 2025 Carles Castellanos i Llorenç, Agustí Mayor i Lloret.

Les dades del diccionari incloses en aquest repositori tenen una llicència diferent de la del codi font: CC BY-NC 4.0.

Directories

Path Synopsis
cmd
build-assets command
Package main implements the asset bundler for DIRELEX.
Package main implements the asset bundler for DIRELEX.
generate command
Package main implements the static site generator for DIRELEX.
Package main implements the static site generator for DIRELEX.
server command
Package main implements a web server for the DIRELEX.
Package main implements a web server for the DIRELEX.
internal
core
Package core contains the dictionary data model and rendering helpers.
Package core contains the dictionary data model and rendering helpers.
generator
Package generator builds the dictionary's static website.
Package generator builds the dictionary's static website.
server
Package server contains the HTTP handlers for the dictionary website.
Package server contains the HTTP handlers for the dictionary website.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL