Read-only mirror of https://github.com/sitn/docsonmaps — Canton de Neuchâtel. Issues & pull requests at the source.
  • TypeScript 51.8%
  • HTML 40.2%
  • CSS 3.6%
  • JavaScript 3.4%
  • Dockerfile 0.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stéphane Malta e Sousa cbdde4e2a3
Merge pull request #19 from sitn/doc-suggestions
Doc suggestions
2026-11-06 17:08:20 +01:00
buildtools init 2024-01-04 13:31:13 +01:00
src better doctor change workflow 2026-11-06 17:05:57 +01:00
.dockerignore use env but same image 2026-09-24 16:35:01 +02:00
.eslintrc.js init 2024-01-04 13:31:13 +01:00
.gitattributes use env but same image 2026-09-24 16:35:01 +02:00
.gitignore deploy 2024-01-16 10:27:07 +01:00
docker-compose.yml non-root container 2026-06-16 10:15:04 +02:00
docker-entrypoint.sh use env but same image 2026-09-24 16:35:01 +02:00
Dockerfile use env but same image 2026-09-24 16:35:01 +02:00
httpd.conf use env but same image 2026-09-24 16:35:01 +02:00
package-lock.json update dev depedencies 2026-03-17 16:12:35 +01:00
package.json better doctor change workflow 2026-11-06 17:05:57 +01:00
README.md better doctor change workflow 2026-11-06 17:05:57 +01:00
tsconfig.json fix compilation errors 2026-06-16 08:52:30 +02:00
vite.config.js use env but same image 2026-09-24 16:35:01 +02:00

Getting started

Create src/.env.development:

VITE_API_URL=https://sitn.ne.ch/apps_prepub/health

Then

npm i
npm start

Run the image locally

docker compose build
docker run --rm -p 5021:8080 -e VITE_API_URL=https://sitn.ne.ch/apps_prepub/health ne2harbor.ne.ch/sgrf/sitn-medecins:latest

Then open http://localhost:5021/

Deploy

Don't forget to add to version.html what you've done.

Start by building and pushing:

$env:TAG="1.0.<replace with version>";
docker compose build
docker compose push

Set the DOCKER_HOST environment variable and launch the build/run :

$env:DOCKER_HOST="<PATH_TO_REMOTE_HOST>"
docker compose pull
docker compose up -d

With docker compose up, pass VITE_API_URL through an environment: or env_file: entry in docker-compose.yaml