In terminal. Inside auth, client, expiration,orders, payments, tickets directory
Run
npm install
npm install @kntickets/common
The front-end is avaliable in client directry
skaffold || docker || Kubernetes || Minikube ['Only Linux']
./infra/k8s/ingress-srv.yaml
Change the host at line 10 to your domain in case of production.
ELSE
Edit host file of your OS.
Host file at
MacOs/Linux - /etc/hosts
Windows - C:\Windows\System32\Drivers\etc\hosts
ADD AT THE END OF FILE
127.0.0.1 ticketing.dev
When opening ticketing.dev on brower you should get Error called Your connection is not private in chrome
This error is just caused due to Kubernetes Ingress Controller Fake Certificate only happens on development
TYPE
thisisunsafe
on browser to bypass the error
In line number 17 of
./payments/src/test/setup.ts
Enter a valid stripe key for test to pass.
For development reasons payment expiration event is set to 1 Min. For production you can change it at
./orders/src/routes/new.ts
CURRENTLY
const EXPIRATION_WINDOW_SECONDS = 1 * 60
CHANGE IT TO 15 MINUTES OR MORE I'm setting it to 15 minutes
const EXPIRATION_WINDOW_SECONDS = 15 * 60
Skaffold is a command line tool that facilitates continuous development for Kubernetes-native applications. Skaffold handles the workflow for building, pushing, and deploying your application, and provides building blocks for creating CI/CD pipelines.
Run
skaffold dev
in root directory to run in local file
Learn more about skaffold at
https://skaffold.dev/docs/quickstart/
Minimum THREE load balancer required to run efficeiently. Two might do the job but haven't tested for two.
'Tested on digitalocean'