This monorepo contains the backend services for SG Cars Trends, tracking Singapore's car statistics including:
backend/
βββ apps/
β βββ api/ # REST API service
β βββ updater/ # Data update service
βββ packages/
β βββ schema/ # Database schema using Drizzle ORM
β βββ types/ # Shared TypeScript types
β βββ utils/ # Shared utility functions
- Backend: Node.js, TypeScript
- Framework: Hono
- Database: Neon Serverless PostgreSQL with Drizzle ORM
- Caching: Upstash Redis
- Infrastructure: SST (Serverless Stack)
- Scheduling: Trigger.dev
- Package Management: pnpm workspace
- Build Tools: Turbo
- Testing: Vitest
- Linting: Biome
- Node.js >= 18
- pnpm
# Clone the repository
git clone https://github.com/sgcarstrends/backend.git
cd backend
# Install dependencies
pnpm install
# Run all tests
pnpm test
# Run tests with coverage
pnpm test:coverage
# Run linting
pnpm lint
MIT