Encore Has a Free API You Should Know About

go dev.to

Encore is a backend framework that generates infrastructure from your code — type-safe APIs, databases, cron jobs, all declared in code. Define an API — TypeScript // backend/user/user.ts import { api } from 'encore.dev/api' import { SQLDatabase } from 'encore.dev/storage/sqldb' const db = new SQLDatabase('users', { migrations: './migrations' }) interface User { id: number name: string email: string } export const list = api( { expose: true, method: 'GET', path: '/users

Read Full Tutorial open_in_new
arrow_back Back to Tutorials