encore-getting-started

encoredev/skills · updated Apr 8, 2026

$npx skills add https://github.com/encoredev/skills --skill encore-getting-started
0 commentsdiscussion
summary

A minimal Encore.ts app:

skill.md

Getting Started with Encore.ts

Instructions

Install Encore CLI

# macOS
brew install encoredev/tap/encore

# Linux/WSL
curl -L https://encore.dev/install.sh | bash

# Windows (PowerShell)
iwr https://encore.dev/install.ps1 | iex

Create a New App

# Interactive - choose from templates
encore app create my-app

# Or start with a blank app
encore app create my-app --example=ts/hello-world

Project Structure

A minimal Encore.ts app:

my-app/
├── encore.app           # App configuration
├── package.json         # Dependencies
├── tsconfig.json        # TypeScript config
├── encore.service.ts    # Service definition
└── api.ts               # API endpoints

The encore.app File

// encore.app
{
    "id": "my-app"
}

This file marks the root of your Encore app. The id is your app's unique identifier.

Define a Service

Create encore.service.ts to define a service:

// encore.service.ts
import { Service } from "encore.dev/service";

export default new Service("my-service");

Create Your First API

// api.ts
import { api } from "encore.dev/api";

interface HelloResponse {
  message: string;
}

export const hello = api(
  { method: "GET", path: "/hello", expose: true },
  async (): Promise<HelloResponse> => {
    return { message: "Hello, World!" };
  }
);

Run Your App

# Start the development server
encore run

# Your API is now available at http://localhost:4000

Open the Local Dashboard

# Opens the local development dashboard
encore run
# Then visit http://localhost:9400

The dashboard shows:

  • All your services and endpoints
  • Request/response logs
  • Database queries
  • Traces and spans

Common CLI Commands

Command Description
encore run Start the local development server
encore test Run tests
encore db shell <db> Open a psql shell to a database
encore gen client Generate API client code
encore app link Link to an existing Encore Cloud app

Add a Database

// db.ts
import { SQLDatabase } from "encore.dev/storage/sqldb";

const db = new SQLDatabase("mydb", {
  migrations: "./migrations",
});

Create a migration:

-- migrations/1_create_table.up.sql
CREATE TABLE items (
    id SERIAL PRIMARY KEY,
    name TEXT NOT NULL
);

Next Steps

  • Add more endpoints (see encore-api skill)
  • Add authentication (see encore-auth skill)
  • Add infrastructure like Pub/Sub, cron jobs (see encore-infrastructure skill)
  • Deploy to Encore Cloud: encore app link then git push encore

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.667 reviews
  • Arya White· Dec 24, 2024

    Registry listing for encore-getting-started matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Li Ramirez· Dec 12, 2024

    Solid pick for teams standardizing on skills: encore-getting-started is focused, and the summary matches what you get after install.

  • Ganesh Mohane· Dec 8, 2024

    Registry listing for encore-getting-started matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ava Malhotra· Dec 8, 2024

    encore-getting-started is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Benjamin Abebe· Dec 8, 2024

    I recommend encore-getting-started for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Rahul Santra· Nov 27, 2024

    Solid pick for teams standardizing on skills: encore-getting-started is focused, and the summary matches what you get after install.

  • Isabella Bansal· Nov 27, 2024

    Useful defaults in encore-getting-started — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Neel Mehta· Nov 15, 2024

    Solid pick for teams standardizing on skills: encore-getting-started is focused, and the summary matches what you get after install.

  • Nikhil Dixit· Nov 3, 2024

    Registry listing for encore-getting-started matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ren Choi· Oct 22, 2024

    Useful defaults in encore-getting-started — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

showing 1-10 of 67

1 / 7