- Svelte 62.5%
- TypeScript 21.5%
- CSS 8.1%
- Shell 3.4%
- Dockerfile 3%
- Other 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| drizzle | ||
| messages | ||
| project.inlang | ||
| src | ||
| static | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| bun.lock | ||
| components.json | ||
| compose.yaml | ||
| Containerfile | ||
| deploy.sh | ||
| docker-entrypoint.sh | ||
| drizzle.config.ts | ||
| migrate.mjs | ||
| package.json | ||
| README.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
Message Board
This SvelteKit application shows JSON messages, sent to the app's API, on a dashboard, using SSE.
The app acts as the final destination in a data pipeline, to show and teach students the features and capabilities of healthcare communication servers. Students send HL7v2 or FHIR messages to a communication server (i.e., OpenIntegrationEngine) and create Channels with Transformers to parse the message content to the API's JSON format. The final messages are then forwarded to this application's API to be displayed.
Stack
The application is built with SvelteKit and TypeScript, styled using TailwindCSS. To maintain simplicity, all messages are only stored in-memory.
Getting started
After cloning the repository, install the required dependencies by running bun install.
Then start the local development server with the bun dev.
Deployment
To ensure an easy deployment, a basic deployment script has been created. The script runs a Docker build, exports the built image to a tarball and copies it, together with the compose.yaml, to the specified server. Importing the image, as well as (re-)starting the service, is not done automatically.
Run sh deploy.sh <version> <remote> where remote is in the format of <user>@<host>.
If you are deploying the application using a custom base-path, make sure this path is set in the environment during the image build.
API Documentation
To post a new message, send an HTTP POST request to /api/messages. The body must contain a valid JSON object:
{
title: string;
content: string;
group?: number;
}
Since this application replaces an older implementation, also an endpoint for backwards compatibility is supported. While it will work as expected, do not use this endpoint. Use /api/messages for your requests.