Getting Started
Relevant source files
The following files were used as context for generating this wiki page:Introduction
Ever® Traduora is an open-source translation management platform designed for teams. It provides a centralized system to manage the entire translation workflow, from importing source files to collaborating with team members and delivering updates. This guide covers the initial setup, configuration, and basic usage of the platform.
The platform is built as a monorepo containing distinct packages for the API, the web application, and the documentation website. It is designed for flexible deployment, with options for Docker, Kubernetes, or building from source. Key features include team collaboration, a comprehensive REST API for automation, and support for a wide range of translation file formats.
Sources: README.md:16-24, package.json:101-108
Project Structure
The Traduora repository is a monorepo managed with yarn workspaces. This structure separates the main components of the application into distinct packages.
| Package | Description |
|---|---|
api | The NestJS backend application that provides the REST API. |
webapp | The Angular frontend application for the user interface. |
docs-website | The Docusaurus-based documentation website. |
This modular architecture is defined in the root package.json file.
// package.json
"workspaces": {
"packages": [
"webapp",
"api",
"docs-website"
],
// ...
}
Sources: package.json:101-108
Docker Deployment
The recommended method for a quick setup is using Docker. The provided docker-compose.yaml file orchestrates the necessary services for the application to run.
Service Architecture
The Docker setup consists of three main services:
traduora: The main application service running the NestJS API.db: A PostgreSQL database for data persistence.redis: A Redis instance used for caching and other background tasks.
The following diagram illustrates the relationship between these services.
This diagram shows that the traduora application service depends on both the db and redis services to function correctly.
Sources: docker-compose.yaml:6-43
Startup Sequence
The docker-entrypoint.sh script controls the startup process for the traduora container. It ensures that the database is available before starting the application.
This flow ensures that the database schema is up-to-date before the application begins accepting requests.
Sources: docker-entrypoint.sh
Configuration
The application is configured using environment variables. These can be set directly in the docker-compose.yaml file or in an external .env file.
Key Environment Variables
The following table lists some of the most important configuration variables for getting started.
| Variable | Description | Default Value |
|---|---|---|
TR_DATABASE_URL | Connection string for the PostgreSQL database. | postgres://traduora:traduora@db:5432/traduora |
TR_REDIS_URL | Connection string for the Redis instance. | redis://redis:6379 |
TR_SIGNUPS_ENABLED | Toggles whether new user signups are allowed. | true |
TR_SEED_DATA | If true, automatically runs seed scripts on startup. | false |
TR_ADMIN_EMAIL | Email for the default admin user. | local.admin@ever.co |
TR_ADMIN_PASSWORD | Password for the default admin user. | sTr0ngP@ssw0rd!2025 |
TR_ADMIN_NAME | Name for the default admin user. | Admin |
Sources: docker-compose.yaml:12-18, README.md:73-75
Default Admin User
When user signups are disabled (TR_SIGNUPS_ENABLED=false), a default admin user is created to ensure access to the platform. The credentials can be used for the initial login and can be changed through the user settings interface after logging in.
- Email:
local.admin@ever.co - Password:
sTr0ngP@ssw0rd!2025
These credentials can be overridden using the TR_ADMIN_EMAIL and TR_ADMIN_PASSWORD environment variables.
Sources: README.md:62-75
Data Seeding
Traduora can automatically seed the database with initial data, including the default admin user.
- Automatic Seeding: Set the environment variable
TR_SEED_DATA=trueto run all seed scripts during application startup. - Manual Seeding: You can run the seeding scripts manually from the project root using
yarn.yarn seed: Runs all seeds, including demo data.yarn seed:default: Seeds only the default admin user.
These root-level scripts delegate to the corresponding scripts within the api package.
Sources: README.md:86-93, package.json:28-29, api/package.json:29-30
Core Features
Traduora provides a rich set of features to streamline the translation workflow.
Supported Formats
You can import and export translations in various formats.
| Format | Type |
|---|---|
| JSON | flat, nested |
| CSV | |
| YAML | flat, nested |
| Java Properties | |
| XLIFF 1.2 | |
| Gettext | .po |
| Strings | Apple .strings |
| Android Resources | .xml |
Sources: README.md:41-42
REST API
The platform includes a REST API to automate and integrate your translation workflow. The API allows for programmatic management of projects, terms, translations, and more.
For example, creating a new project is done by sending a POST request to the /api/v1/projects endpoint.
The following sequence diagram illustrates the creation of a new project.
This interaction is demonstrated in the end-to-end tests for the project controller.