Quickstart
Run the platform locally, create your administrator account and publish your first record in about ten minutes.
Prerequisites
| Tool | Version | Notes |
|---|---|---|
| Node.js | 22 or newer (24 LTS recommended) | nodejs.org |
| pnpm | 10 | npm install -g pnpm@10 |
| PostgreSQL | 16 or newer | Docker, a native install, or the bundled Windows script |
| Git | any recent |
1. Get the code
git clone https://github.com/byterings/bytecontent.git
cd bytecontent
pnpm install2. Start PostgreSQL
Choose one option:
With Docker
docker compose up -dThis starts PostgreSQL 17 and creates the application role and databases automatically.
Native PostgreSQL
Install PostgreSQL, then create the application role and databases with the superuser connection:
ADMIN_DATABASE_URL=postgresql://postgres:<password>@localhost:5432/postgres pnpm db:setup-localWindows without administrator rights
powershell -File scripts/local-postgres.ps1 install # once: downloads PostgreSQL into your user folder
powershell -File scripts/local-postgres.ps1 start # after every restart
pnpm db:setup-localThe scripts create a role named byterings without superuser or BYPASSRLS rights. This matters: PostgreSQL row-level security only protects tenant data for roles like this.
3. Configure the environment
cp apps/api/.env.example apps/api/.env
cp apps/admin/.env.example apps/admin/.env.localThe defaults work for local development. See Configuration for every option.
4. Build, migrate and run
pnpm build # compiles all packages
pnpm db:deploy # applies database migrations
pnpm dev # API on http://localhost:4000, Admin Studio on http://localhost:30005. Create your administrator
There is no default username or password. Every installation creates its own administrator on first run.
- Open http://localhost:3000/setup.
- Enter your organization name and slug (for example
acme), your name, your email (your login ID) and a password with at least 12 characters. - Click Create installation. You are signed in as the owner and platform administrator.
Setup runs only once. Afterwards, sign in at http://localhost:3000/login.
6. Build your first content type
- Open Schema and click New entity. Name it
Product. The API keyproductis filled in for you. - Click Add field and create:
Name: Text, requiredPrice: Decimal, required, minimum 0Is active: Boolean, default value on
- In the sidebar under Content, open Products and click New product. Fill in the form and click Create.
7. Read it through the API
Create an API key in API keys with the records:read scope, then:
curl -H "Authorization: Bearer bcms_xxxxxxxx_your-secret" \
"http://localhost:4000/api/v1/entities/product/records?sort=-price"{
"data": [
{
"id": "7b0a2a4e-7d4b-4b8c-9a46-0f1f7c3e9a11",
"entity": "product",
"data": { "name": "Desk lamp", "price": "19.90", "isActive": true },
"version": 1,
"createdAt": "2026-11-14T10:00:00.000Z",
"updatedAt": "2026-11-14T10:00:00.000Z"
}
],
"meta": { "page": 1, "pageSize": 20, "total": 1, "totalPages": 1 }
}Interactive API documentation is available at http://localhost:4000/api/v1/docs.
Common commands
| Command | Purpose |
|---|---|
pnpm dev | API and Admin Studio in watch mode |
pnpm build | Build every package and app |
pnpm test | Unit and integration tests (needs PostgreSQL) |
pnpm test:e2e | Browser end-to-end tests (Playwright) |
pnpm lint / pnpm typecheck | Static checks |
pnpm db:deploy | Apply database migrations |
Install the CMS template for a ready-made blog, or read Core concepts to understand tenants, entities and roles.