Read-only mirror of https://github.com/sitn/docsonmaps — Canton de Neuchâtel. Issues & pull requests at the source.
  • TypeScript 53%
  • HTML 39.2%
  • CSS 3.8%
  • JavaScript 3.5%
  • Dockerfile 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stéphane Malta e Sousa 7d21afbb3f
Merge pull request #18 from sitn/config-kube
Config kube
2026-06-22 13:19:30 +02:00
buildtools init 2024-01-04 13:31:13 +01:00
src fix compilation errors 2026-06-16 08:52:30 +02:00
.dockerignore delete kube 2026-06-22 13:17:38 +02:00
.eslintrc.js init 2024-01-04 13:31:13 +01: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
Dockerfile casing 2026-06-16 10:21:07 +02:00
httpd.conf non-root container 2026-06-16 10:15:04 +02:00
package-lock.json update dev depedencies 2026-03-17 16:12:35 +01:00
package.json update dev depedencies 2026-03-17 16:12:35 +01:00
README.md deployment working 2026-06-16 11:10:54 +02:00
tsconfig.json fix compilation errors 2026-06-16 08:52:30 +02:00
vite.config.js disable rotation 2024-11-01 11:31:27 +01:00

Getting started

npm i
npm start

Deploy

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

Create a .env.prod file and set your vars like:

VITE_BASE_URL=/path/to/your/app
VITE_API_URL=your.backend.com/apps/health

For some reason, env.prod has to be in src directory and at the root of the project. Start by building and pushing:

$env:TAG="1.0.$(git rev-parse --short HEAD)";
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