Typical Project Setup
Step 1: Create a GitHub Repository
Step 2: Repo layout
my-clinical-app/
├── package.json # dependencies + build/start scripts (drives runtime detection)
├── vite.config.js # base path + optional dev proxy
├── index.html
└── src/
├── main.tsx # mounts <HUProvider> + your app
├── HUProvider.tsx # wraps HealthUniverseProvider (see "Your First App")
└── … # your components, using the SDK hooks{
"name": "my-clinical-app",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"@health-universe/react": "^0.1.0",
"@tanstack/react-query": "^5.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
}Step 3: Build & run — static SPA vs Node server
Step 4: Runtime auto-detection
Step 5: Base-path handling
Client-side routing: strip the trailing slash
Step 6: Local development against a remote API
Step 7: Commit and deploy
Last updated
Was this helpful?