Display messages posted to an API endpoint using SSE
  • Svelte 62.5%
  • TypeScript 21.5%
  • CSS 8.1%
  • Shell 3.4%
  • Dockerfile 3%
  • Other 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-23 15:39:05 +02:00
.forgejo/workflows Fix version tags 2026-10-23 15:39:05 +02:00
drizzle Fix migration setup 2026-10-23 10:20:10 +02:00
messages Add paraglide for internationalization 2026-10-23 06:42:42 +02:00
project.inlang Add paraglide for internationalization 2026-10-23 06:42:42 +02:00
src Add paraglide for internationalization 2026-10-23 06:42:42 +02:00
static Initial commit 2026-02-11 18:29:08 +01:00
.dockerignore Improve container image 2026-10-23 06:10:38 +02:00
.env.example Improve container image 2026-10-23 06:10:38 +02:00
.gitignore Add paraglide for internationalization 2026-10-23 06:42:42 +02:00
bun.lock Fix migration setup 2026-10-23 10:20:10 +02:00
components.json Initial commit 2026-02-11 18:29:08 +01:00
compose.yaml Fix migration setup 2026-10-23 10:20:10 +02:00
Containerfile Fix migration setup 2026-10-23 10:20:10 +02:00
deploy.sh Initial commit 2026-02-11 18:29:08 +01:00
docker-entrypoint.sh Fix migration setup 2026-10-23 10:20:10 +02:00
drizzle.config.ts Add SQLite database 2026-10-23 05:54:09 +02:00
migrate.mjs Fix migration setup 2026-10-23 10:20:10 +02:00
package.json Fix migration setup 2026-10-23 10:20:10 +02:00
README.md Initial commit 2026-02-11 18:29:08 +01:00
tsconfig.base.json Initial commit 2026-02-11 18:29:08 +01:00
tsconfig.json Migrate to SvelteKit 3 2026-10-23 06:15:13 +02:00
vite.config.ts Add paraglide for internationalization 2026-10-23 06:42:42 +02:00

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.