Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPH Vision

HPH Vision is organized as a TypeScript monorepo using pnpm workspaces and Turborepo. The repository contains a React Native mobile application, a shared React Native library, TypeScript core/mobile packages, a FastAPI service, and a shared Python backend library.

Repository Structure

packages/
├── mobile/             React Native application (@hiperhealth/hphvision)
├── mobile-lib/         Shared React Native library (@hiperhealth/hphvision-lib)
├── hphvision-core/     Shared TypeScript core package (@hiperhealth/hphvision-core)
├── hphvision-mobile/   TypeScript mobile package (@hiperhealth/hphvision-mobile)
├── restapi/            FastAPI application
└── api-core/           Shared Python backend library

Monorepo Tooling

This repository uses:

  • pnpm Workspaces
  • Turborepo
  • TypeScript Project References
  • Poetry (Python dependency management)

JavaScript Setup

Install JavaScript dependencies from the repository root:

pnpm install

Build all workspace packages:

pnpm build

Run all tests:

pnpm test

Run lint:

pnpm lint

Run TypeScript type checking:

pnpm typecheck

Run all checks:

pnpm check

Mobile Development

Run the development server:

pnpm mobile:dev

Run mobile lint:

pnpm mobile:lint

Android Studio project:

packages/mobile/android

Do not open the repository root as the Android project.

If Android Studio requests the SDK location, create the untracked file:

packages/mobile/android/local.properties

Example:

sdk.dir=/home/<user>/Android/Sdk

Python / FastAPI

Install Python dependencies:

poetry install

Run the API:

pnpm api:dev

Equivalent command:

poetry run uvicorn hph_vision_api.main:app --app-dir packages/restapi/src --reload

Health endpoint:

GET /health

Python Commands

Lint:

pnpm api:lint

Format:

pnpm api:format

Tests:

pnpm api:test

Workspace Packages

@hiperhealth/hphvision-core

Shared TypeScript package used across workspace packages.

Location:

packages/hphvision-core

@hiperhealth/hphvision-mobile

TypeScript mobile package that depends on @hiperhealth/hphvision-core.

Location:

packages/hphvision-mobile

@hiperhealth/hphvision

React Native application.

Location:

packages/mobile

@hiperhealth/hphvision-lib

Shared React Native library.

Location:

packages/mobile-lib

Development Workflow

Install dependencies:

pnpm install

Run all quality checks:

pnpm check

Build all packages:

pnpm build

Package Managers

JavaScript

  • pnpm

Python

  • Poetry

CI

The repository CI validates:

  • Build
  • Lint
  • Tests
  • Type checking

using pnpm workspaces, Turborepo, Poetry, and Makim.

License

This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages