This guide walks you through setting up TranslogiX locally from a fresh clone to a running application with sample data. By the end you will have the dev server running atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fatelessdev/translogiX/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:3000, four seeded user accounts ready to sign in, and sample shipments you can explore immediately.
Install dependencies
TranslogiX uses pnpm as its package manager. Install it globally if you don’t have it, then install project dependencies:
Set up environment variables
Create a
.env file in the project root with the following variables:| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL connection string. The default value above matches the Docker Compose configuration exactly. |
BETTER_AUTH_SECRET | A random secret used to sign authentication tokens. Use at least 32 characters. |
BETTER_AUTH_URL | The public base URL of your app. Use http://localhost:3000 for local development. |
Start the database
TranslogiX requires a PostgreSQL database. The included Docker Compose file starts a PostgreSQL 16 container named The container is configured with a health check. Wait a few seconds for it to become healthy before proceeding.
translogix-postgres on port 5432:The default credentials (
postgres / postgres) and database name (translogix) match the DATABASE_URL value in the previous step. If you change them in Docker Compose, update DATABASE_URL to match.Push the database schema
Apply the Drizzle schema to the running database:This introspects
lib/db/schema.ts and creates all tables in the translogix database without generating migration files.Seed sample data
Populate the database with realistic sample data:The seed script creates the following:
All four user accounts share the password
| Resource | Count | Details |
|---|---|---|
| Users | 4 | Admin, Transporter, Driver, Customer |
| Transporters | 2 | Swift Cargo, FastRoute Logistics |
| Vehicles | 5 | Trucks, a van, and a dumper across both transporters |
| Routes | 3 | Mumbai→Delhi, Chennai→Bangalore, Kolkata→Hyderabad |
| Shipments | 5 | One in each status: CREATED, ASSIGNED, IN_TRANSIT, PICKED_UP, DELIVERED |
| Tracking updates | 8 | Four each for PKG-003 and PKG-004 |
password123.Start the development server
Sign in and explore
Navigate to http://localhost:3000 and sign in with any of the seeded accounts:
Sign in as Admin first to get full visibility across shipments, transporters, vehicles, routes, and the AI Operations panel. Each role sees a tailored dashboard with the actions available to that role.
| Role | Password | |
|---|---|---|
| Admin | admin@translogix.com | password123 |
| Transporter | transporter@translogix.com | password123 |
| Driver | driver@translogix.com | password123 |
| Customer | customer@translogix.com | password123 |
To browse and edit database records directly, run
pnpm db:studio to open the Drizzle Studio UI in your browser.