Skip to content

Monorepo for SG Cars Trends backend services

Notifications You must be signed in to change notification settings

sgcarstrends/backend

Repository files navigation

SG Cars Trends Backend

License: MIT

Overview

This monorepo contains the backend services for SG Cars Trends, tracking Singapore's car statistics including:

Project Structure

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

Technologies

  • 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

Getting Started

Prerequisites

  • Node.js >= 18
  • pnpm

Installation

# Clone the repository
git clone https://github.com/sgcarstrends/backend.git
cd backend

# Install dependencies
pnpm install

Development

# Run all tests
pnpm test

# Run tests with coverage
pnpm test:coverage

# Run linting
pnpm lint

License

MIT