Before cloning the repository, read Environment Setup and make sure required components such as Go, Node.js, pnpm, and PostgreSQL are installed correctly.
Clone the Repositoryâ
Use the following commands to fetch the framework source code:
# Install the latest experimental version
git clone --depth 1 https://github.com/linaproai/linapro.git linapro
# Or pin to a specific stable release, e.g., v0.1.0
git clone --depth 1 --branch v0.1.0 https://github.com/linaproai/linapro.git linapro
Start the Servicesâ
Prepare PostgreSQLâ
LinaPro uses PostgreSQL 14+ as its default database. make init and make dev do not start or manage the database, so prepare a reachable PostgreSQL instance first. For local development, you can use this container:
docker run \
-p 5432:5432 \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=linapro \
postgres:14-alpine
If local port 5432 is already occupied, map the container to another host port, such as 15432:5432.
Configure the Database Connectionâ
After cloning, enter the project directory and copy the config template as the active config file:
cd linapro
cp apps/lina-core/manifest/config/config.template.yaml apps/lina-core/manifest/config/config.yaml
Open config.yaml in an editor, find the database connection section, and update it to match your local PostgreSQL connection details:
database:
default:
link: "pgsql:postgres:postgres@tcp(127.0.0.1:5432)/linapro?sslmode=disable"
The default configuration connects to the linapro database with postgres:[email protected]:5432. If your PostgreSQL instance uses a different username, password, host, port, or database name, update the value here.
Initialize the Databaseâ
After the config is ready, run the following command to create the database schema and write the initial data:
make init confirm=init
If you use PowerShell on Windows, run:
.\make init confirm=init
After initialization, the database contains the basic table structure and default configuration data required by the system.
Load Demo Data (Optional)â
After the config is ready, run the following command to load the official demo data:
make mock confirm=mock
Check the Environment (Optional)â
Run the following command to check whether the current development environment meets the requirements:
make env.check
If requirements are missing, you can install the complete development environment resources (frontend and test resource components only) with the following command. This may take some time:
make env.setup
This command automatically downloads the Playwright browser for end-to-end testing. If the Chromium download is slow, you can use a mirror to speed it up:
- macOS / Linux
- Windows
PLAYWRIGHT_DOWNLOAD_HOST=https://cdn.npmmirror.com/binaries/playwright make env.setup
$env:PLAYWRIGHT_DOWNLOAD_HOST="https://cdn.npmmirror.com/binaries/playwright" make env.setup
Start the Development Servicesâ
Run the following command to start both frontend and backend services:
make dev
When the services start successfully, visit:
| Service | URL |
|---|---|
| Frontend dev server | http://localhost:5666 |
Backend API service | http://localhost:9120 |
| Default admin workspace | http://localhost:5666/admin |
Log in to the admin workspace with the default account:
| Field | Value |
|---|---|
| Account | admin |
| Password | admin123 |
Tool Integrationâ
Today's AI Coding tools use different conventions for storing skills, project rules, and prompt files. LinaPro provides a general interactive terminal command that integrates the framework's Skills, project conventions, and prompts into the AI Coding tool you already use, reducing the amount of setup you need to remember.
make agents
Run this before code development so your AI Coding tool can work with higher-quality project context.
Common Commandsâ
The following commands are used frequently during development. For the complete development command set, see Development Commands.
make dev # Start frontend and backend services
make stop # Stop all local services
make status # Check service status
make build # Build distributable binary/WASM artifacts
make image # Build the Docker image
Windows cmd.execan runmake <command>directly. InPowerShell, use.\make <command>or.\make.cmd <command>.
Installation Verificationâ
After the service starts, if you can enter the admin workspace normally, the installation is complete. If you run into issues, use the following checklist:
- Confirm that
PostgreSQLis running and that the database connection inconfig.yamlis correct - Check backend log output for service errors
- Run
make statusto inspect frontend and backend process status - If the issue is still unresolved, visit Community for help