Skip to content

Web app for building and running surveys. TypeScript monorepo featuring Hono API, and React client.

Notifications You must be signed in to change notification settings

Remake1/QuickSurvey

Repository files navigation

QuickSurvey

Screenshots

Screenshot 1 Screenshot 1 Screenshot 1 Screenshot 1 Screenshot 1 Screenshot 1

A monorepo built with Hono, Vite, React, and Turborepo.

Project Structure

QuickSurvey/
├── api/          # Hono backend API
├── client/       # React frontend
├── shared/       # Shared types
├── docker-compose.yaml
├── turbo.json
└── package.json

Getting Started

Prerequisites

Installation

# Clone repository
git clone https://github.com/Remake1/QuickSurvey.git
cd QuickSurvey

# Install dependencies
pnpm install

Environment Setup

# Copy environment files
cp .env.example .env
cp api/.env.example api/.env

# Edit api/.env with postgres credentials

Start Database and Storage

# Start PostgreSQL and MinIO
docker-compose up -d

Database Setup

# Generate Prisma client
pnpm db:generate

# Run database migrations
pnpm db:migrate

🛠️ Development

Run Development Servers

# Run all API + Client
pnpm dev

# Run only API (localhost:3000)
pnpm dev:api

# Run only Client (localhost:5173)
pnpm dev:client

Build

# Build all packages
pnpm build

# Build specific package
pnpm build:api      # Uses esbuild → api/dist/index.js
pnpm build:client   # Uses Vite → client/dist/

Run Production

# Start API (after building)
pnpm --filter api start

# Or directly with node
node api/dist/index.js

About

Web app for building and running surveys. TypeScript monorepo featuring Hono API, and React client.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages