Before cloning the repository, please refer to Environment Setup to ensure that Go, Node.js, pnpm, PostgreSQL, and other required components are properly installed.
Clone the Repositoryâ
Use the following commands to obtain the framework source code.
Install the latest experimental version:
git clone https://github.com/linaproai/linapro.git linapro
Or specify a stable release version, such as v0.1.0:
git clone https://github.com/linaproai/linapro.git linapro --branch v0.1.0
Start the Serviceâ
Prepare PostgreSQLâ
LinaPro uses PostgreSQL 14+ as its database by default. make db.init and make dev do not start or manage the database, so please prepare a connectable PostgreSQL instance first. For local development, you can use the following container:
docker run \
-p 5432:5432 \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=linapro \
postgres:14-alpine
If port 5432 on your machine is already in use, you can map the container to a different local port, such as 15432:5432.
Configure the Database Connectionâ
After cloning, navigate to the project directory and copy the configuration template to create the actual configuration file:
cd linapro
cp apps/lina-core/manifest/config/config.template.yaml apps/lina-core/manifest/config/config.yaml
The default configuration connects to the linapro database using postgres:[email protected]:5432. If your PostgreSQL uses a different username, password, host, port, or database name, update it here. Open config.yaml in an editor, locate the database connection section, and change it to match your local PostgreSQL connection details:
database:
default:
link: "pgsql:postgres:postgres@tcp(127.0.0.1:5432)/linapro?sslmode=disable"
Initialize the Databaseâ
Once configuration is complete, run the following command to create the database schema and write initial data:
make db.init confirm=init
For Windows users running PowerShell:
.\make db.init confirm=init
After initialization, the database will contain the base table structures and default configuration data required by the system.
Load Demo Data (Optional)â
After configuration, run the following command to load the provided demo data:
make db.mock confirm=mock
Run Environment Check (Optional)â
Run the following command to verify that your development environment meets the requirements:
make env.check
If requirements are not met, you can install the full development environment resources (frontend and test tooling only) with the following command. This may take a while:
make env.setup
This automatically downloads the Playwright tool for subsequent E2E tests. If downloading Chromium is slow, you can use a regional mirror:
- 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 Serverâ
Run the following command to start the frontend and backend services:
make dev
After the services start successfully, visit the following addresses:
| Service | Address |
|---|---|
| Frontend dev server | http://localhost:5666 |
| Backend API server | http://localhost:9120 |
| Default admin workspace | http://localhost:5666/admin |
Log in to the admin workspace with the default credentials:
| Field | Value |
|---|---|
| Username | admin |
| Password | admin123 |
Tool Integrationâ
Given the current diversity of AI coding tools and the varying locations where they store skills, rules, and prompt files, we provide a universal interactive terminal command to help you quickly integrate the framework's skills, project rules, and prompts into your preferred AI coding tool, reducing cognitive overhead.
make agents
Run this before starting code development so that your AI coding tool can work more effectively.
Common Commandsâ
The following are frequently used commands during development (for the complete set, see the Development Commands section):
make dev # Start frontend and backend services
make stop # Stop all local services
make status # Check service running status
make build # Compile release binary/WASM files
make image # Build Docker image
On Windows
cmd.exe, usemake <command>directly. In PowerShell, use.\make <command>or.\make.cmd <command>.
Installation Verificationâ
After the services start, if you can successfully access the admin workspace, the installation is complete.
If you encounter issues, try the following troubleshooting steps:
- Confirm that PostgreSQL is running and the database connection in
config.yamlis correct - Check the backend log output for any errors
- Run
make statusto check frontend and backend process status - If the issue persists, visit Community for help