Skip to content

elongton/template-fullstack-react-fastify-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack React + Fastify + Postgres Template

Starter repository for a fullstack app with:

  • web: React + Vite frontend served via Nginx
  • api: Fastify + Prisma backend for PostgreSQL
  • .github/workflows/deploy.yml: container build and deployment workflow

Tiny edit.

Project structure

.
├─ web/
├─ api/
├─ .github/workflows/deploy.yml
├─ deploy.config.example.yml
└─ README.md

Quick start

Web

cd web
npm install
npm run dev

API

cd api
npm install
npm run dev

npm run dev now uses a local SQLite database at api/prisma/dev.db.

If you want to run API dev against PostgreSQL instead:

cd api
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/app"
npm run prisma:generate
npm run dev:postgres

API endpoints

  • GET /health
  • GET /db/health

About

This is a react/fastify/postgres template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors