No description
  • JavaScript 55.4%
  • Vue 38.9%
  • CSS 3.7%
  • Dockerfile 1.6%
  • HTML 0.4%
Find a file
Zr4g0n 81058d9285
All checks were successful
CI / test (push) Successful in 49s
CI / build-and-push (push) Successful in 48s
CI / deploy (push) Successful in 8s
hide date range extension buttons
Not used at the moment, but might be added back in soon(tm)
2026-04-29 00:11:38 +02:00
.forgejo/workflows Add automated deployment of develop branch 2026-04-16 02:22:09 +02:00
.vscode Fix incorrect lockfile reference 2026-04-16 01:37:29 +02:00
docker Fix incorrect lockfile reference 2026-04-16 01:37:29 +02:00
src hide date range extension buttons 2026-04-29 00:11:38 +02:00
tests remove colorScheme auto 2026-04-28 01:05:53 +02:00
.editorconfig Normalise to Unix style line endings 2024-11-14 19:17:11 +01:00
.gitattributes Normalise to Unix style line endings 2024-11-14 19:17:11 +01:00
.gitignore Configure proxying of /api endpoint 2024-11-20 17:41:34 +01:00
bun.lock Update dependencies 2026-04-06 23:02:52 +02:00
eslint.config.js Update dependencies 2026-04-06 23:02:52 +02:00
index.html Set document language to English 2024-11-23 20:33:02 +01:00
jsconfig.json Convert indents to tabs 2024-11-14 19:14:39 +01:00
nightwatch.conf.cjs Remove Vue Nightwatch plugin 2026-04-06 20:47:27 +02:00
package.json Update dependencies 2026-04-06 23:02:52 +02:00
README.md Implement login flow 2026-04-06 21:14:42 +02:00
spec.md update spec.md parent details 2026-04-08 00:01:20 +02:00
vite.config.js Remove removal of /api in proxy settings 2026-04-06 21:22:49 +02:00
vitest.config.js Add library for mocking HTTP requests 2024-11-20 20:58:27 +01:00

hydraslayer-client

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur).

Customize configuration

See Vite Configuration Reference.

Project Setup

bun install

Compile and Hot-Reload for Development

bun dev

By default this proxies /api to http://localhost:3000/ Host the API server either by running nodewrangler yourself or use the docker compose command described below. Alternatively you can reconfigure the proxy in vite.config.js to point to an existing server.

Compile and Minify for Production

bun run build

Run Unit Tests with Vitest

bun test:unit

# Run with coverage reporting
bun coverage:unit

Run End-to-End Tests with Nightwatch

The server component needs to run on port 3000 with the seed data set up for these tests to work. See the Docker section below.

# When using CI, the project must be built first.
bun run build

# Runs the end-to-end tests
bun test:e2e
# Runs the tests only on Chrome
bun test:e2e --env chrome
# Runs the tests of a specific file
bun test:e2e tests/e2e/login.js
# Runs the tests in debug mode
bun test:e2e --debug

Lint with ESLint

bun lint

Build and run with Docker

Run the client and server image with client hosted on http://localhost/ and api server on http://localhost:3000/

docker compose -f  docker/compose.yaml up --build

In order for this to work you will need to authenticate with ghcr.io. You can do that by creating a personal access token with read:packages scope and logging in using it as the password with

docker login ghcr.io

To only run the api server use

docker compose -f docker/compose.yaml up server