No description
Find a file
2025-04-07 15:30:05 +02:00
.github/workflows Update .github/workflows/ci.yaml 2025-04-02 12:27:15 +00:00
iching add http-server part 3.2 2025-04-07 15:30:05 +02:00
node_modules unit tests part 3 2025-03-31 14:27:20 +02:00
deployment.yaml add http-server part 3 2025-04-07 13:16:29 +02:00
Dockerfile add http-server part 3.1 2025-04-07 13:28:32 +02:00
ingress.yaml add http-server part 3 2025-04-07 13:16:29 +02:00
jest.config.ts unit tests part 1 2025-03-31 13:59:41 +02:00
package-lock.json unit tests part 3 2025-03-31 14:27:20 +02:00
package.json unit tests part 6 2025-03-31 16:21:15 +02:00
README.md unit tests part 6 2025-03-31 16:21:15 +02:00
service.yaml add http-server part 3 2025-04-07 13:16:29 +02:00
tsconfig.json first commit 2025-03-25 09:54:22 +01:00

I-Ching

The I-Ching (a.k.a. the Book of Changes) is an ancient method of divination based on cleromancy (assigning meaning to the generation of apparently random numbers.) Six numbers between 6 and 9 are generated in order to create a hexagram, the meaning of which is contained in the I Ching book.

You can find lots of great information on the 2000+ year history of the I-Ching on Wikipedia

This app will send an I-Ching horoscope to the pre-configured mailhog instance in configurable intervalls.

This app uses the I-Ching library app https://github.com/Velfi/i-ching.git.

Configuration

Properties of the app can be configured in the file config.json. It is possible to configure the mail host and port. It is also possible to configure the intervall of days between the sending of horoscopes and the time of sending. The default is to send one email every seven days at 8 am.

First Start

The app can be deployed by running:

$     kubectl apply -f deployment.yaml 

When a pod with the app is initally started, one email will be sent to the configured receiver.

Testing

The Jest unit tests can be run with

$     npm test