Medplum is an open-source set of tools designed to provide FHIR Storage, REST APIs and GraphQL
Running Medplum locally is a great way to debug and test your applications offline
git clone https://github.com/claimpowerehr/medplum.git
cd medplum
docker-compose up -d
This starts:
PostgreSQL database (port 5432) Redis cache (port 6379)
npm install
npm install -g @microsoft/api-extractor @microsoft/api-documenter @testing-library/jest-dom rimraf turbo
There are two important packages in the monorepo
Located in the /packages
directory
npm run build -- --filter=@medplum/server
npm run build -- --filter=@medplum/app
Both commands need to succed in order to continue, with an output similar to
Tasks: 8 successful, 8 total
Cached: 4 cached, 8 total
Time: 26.378s
cd packages/server
npm run dev
Server runs at: http://localhost:8103
The dashboard is located in /packages/app
cd packages/app
npm run dev -- --port=4000
Dashboard runs at: http://localhost:4000
NODE_ENV=development
MEDPLUM_BASE_URL=http://localhost:8103
Use node version manager to use a specific version of node
nvm install 21.7.3
nvm use 21.7.3
If you're using Windows, we strongly recommend using WSL2:
Verify PostgreSQL is running:
docker ps | grep postgres
Verify Redis is running:
docker-compose logs