https://github.com/sgcarstrends/backend
Monorepo for SG Cars Trends backend services
https://github.com/sgcarstrends/backend
api aws-lambda hono neon-postgres neondb sst typescript zod
Last synced: 6 months ago
JSON representation
Monorepo for SG Cars Trends backend services
- Host: GitHub
- URL: https://github.com/sgcarstrends/backend
- Owner: sgcarstrends
- Created: 2023-11-05T06:41:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T11:20:49.000Z (6 months ago)
- Last Synced: 2025-04-05T10:06:36.557Z (6 months ago)
- Topics: api, aws-lambda, hono, neon-postgres, neondb, sst, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 1.26 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SG Cars Trends Backend
[](https://opensource.org/licenses/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
```bash
# Clone the repository
git clone https://github.com/sgcarstrends/backend.git
cd backend# Install dependencies
pnpm install
```### Development
```bash
# Run all tests
pnpm test# Run tests with coverage
pnpm test:coverage# Run linting
pnpm lint
```## License
MIT