Menu

Run Microservices Locally: An API, a Website and Postgres in 4 Commands
📰

Run Microservices Locally: An API, a Website and Postgres in 4 Commands

DEV Community: microservices·flisk·11 days ago
#sqdbR0lL
#devtomicroservices#devto#dev#flisk#shop
Long article (350 words) — no AI summary yet.
Reading 0:00
15s threshold

TL;DR: you can run an API, a website and a Postgres database behind one gateway on your laptop with four commands. Flisk writes the Dockerfiles, the routing and the health checks, and reloads on save.

If you searched run microservices locally , you probably hit a wall of Compose files, ports and environment variables. Here is a smaller path. It needs Docker , Tilt , Node.js 22.12+ and Bun 1.2+. Run flisk doctor and it says what is missing.

Install

npm install -g @flisk-sh/flisk

Enter fullscreen mode

Exit fullscreen mode

Four commands

mkdir my-shop && cd my-shop flisk project --yes flisk resource orders-api --type backend --stack shop --yes flisk resource shop-web --type frontend --stack shop --yes flisk up shop

Enter fullscreen mode

Exit fullscreen mode

That starts an orders API and a storefront behind one gateway, with Postgres and live reload, and prints their URLs.

What each service is

flisk resource writes one service.json per part.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.