No description
Find a file
2025-04-14 12:44:59 +02:00
.github/workflows Update .github/workflows/ci.yaml 2025-04-02 12:27:15 +00:00
backend add http-server part 8.4, improve html 2025-04-14 12:44:59 +02:00
frontend add http-server part 8.4, improve html 2025-04-14 12:44:59 +02:00
node_modules add http-server part 7.8 2025-04-11 11:21:06 +02:00
backend-ingress.yaml add http-server part 8.3.2 2025-04-14 11:50:35 +02:00
deployment.yaml add http-server part 3 2025-04-07 13:16:29 +02:00
Dockerfile add http-server part 7.9.1 2025-04-11 11:32:34 +02:00
frontend-ingress.yaml add http-server part 8.3.2 2025-04-14 11:50:35 +02:00
jest.config.js add http-server part 6.2 2025-04-10 14:36:39 +02:00
jest.config.ts unit tests part 1 2025-03-31 13:59:41 +02:00
mime.types add http-server part 4.3 2025-04-08 11:15:53 +02:00
package-lock.json add http-server part 7.8 2025-04-11 11:21:06 +02:00
package.json add http-server part 7.8 2025-04-11 11:21:06 +02:00
README.md add http-server part 8.4, improve html 2025-04-14 12:44:59 +02:00
service.yaml add http-server part 8.1 2025-04-14 10:01:35 +02:00
start.sh add http-server part 7.9.10 CORS 2025-04-11 14:49:17 +02:00
tsconfig.backend.json add http-server part 7.1 2025-04-11 09:44:00 +02:00
tsconfig.frontend.json add http-server part 6.1 2025-04-10 10:21:29 +02:00
tsconfig.json add http-server part 6.1 2025-04-10 10:21:29 +02: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.

First Start

The app can be deployed by running:

$     kubectl apply -f ingress.yaml 
$     kubectl apply -f service.yaml 
$     kubectl apply -f deployment.yaml 

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

Backend Server

The backend server is running inside the pod on the address http://localhost:8090/command. If a POST is sent to this address, the server will run the main logic of this app: An E-Mail with an I-Ching horoscope (provided by the library app) will be sent to the configured email address.

The backend server can be tested from inside the pod by calling 'curl -X POST http://localhost:8090/iching/api/command' from the console.

HTTP Server

The frontend server is running inside the pod on the address http://localhost:8080/iching. It provides an HTML homepage with a button. Upon pressing the button, the backend server will be called (to send an E-Mail).