Skip to content

Monorepo for SG Cars Trends backend services

Notifications You must be signed in to change notification settings

sgcarstrends/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

329b376 Β· Apr 20, 2025
Apr 20, 2025
Mar 29, 2025
Apr 20, 2025
Mar 31, 2025
Mar 2, 2025
Mar 29, 2025
Mar 7, 2025
Mar 29, 2025
Apr 20, 2025
Apr 20, 2025
Feb 23, 2025
Mar 2, 2025
Mar 2, 2025

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