Skip to content

Repository files navigation

fullstack-template-typescript

Full-stack project with a React frontend and a Node.js + Fastify backend.

Requirements

  • Node.js 22 (nvm use)
  • Docker (for the database)

Getting started

nvm use
npm install
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env
npm run db:up       # start Postgres
npm run db:migrate  # run migrations
npm run db:generate # generate Prisma client
npm run dev         # start frontend + backend

Scripts (root)

Development

Command Description
npm run dev Start frontend (http://localhost:3000) and backend (http://localhost:3001)
npm run dev:frontend Start frontend only
npm run dev:backend Start backend only

Database

Command Description
npm run db:up Start Postgres via Docker
npm run db:down Stop Postgres
npm run db:migrate Run pending migrations (dev)
npm run db:generate Regenerate Prisma client
npm run db:reset Drop database and re-apply all migrations

About

A fullstack TypeScript starter template with a React + Vite frontend and a Fastify + Prisma + PostgreSQL backend, featuring a task CRUD demo and i18n.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages