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