Stacktora / Templates / Vite + React + API
Full-stack

Vite + React + API boilerplate

React SPA (Vite) plus a separate Node API service, sharing one Postgres. One click generates a complete, runnable bootstrap — docker-compose, Makefile, Dockerfile, CI and more.

Use this template Browse all templates

The stack

Node.js 24 Vite + React web PostgreSQL 5432

docker-compose.yml preview

# docker-compose.yml — generated by Stacktora
services:
  api:
    image: node:24-alpine
    command: npm run dev
    ports:
      - "3000:3000"
    env_file: [ .env ]
  web:
    image: node:24-alpine   # Vite + React (full-stack front end)
    ports:
      - "5173:5173"
  postgres:
    image: postgres:18-alpine
    ports:
      - "5432:5432"

What you get

docker-compose.ymlMakefileDockerfileREADME.md.env.example.gitignore.dockerignore.github/workflows/ci.yml.tool-versions.editorconfigProcfile … and more

Quickstart

# clone, then one command to a running stack
git clone … && cd api
$ make setup   # install toolchain + deps, build images
$ make dev     # boot the full stack
# → api live at localhost:3000

Related templates

Open Vite + React + API in Stacktora