Skip to content

KishoreNewton/ticketing

Repository files navigation

E-COMMERCE - MICROSERVICES

Install all packages

In terminal. Inside auth, client, expiration,orders, payments, tickets directory

Run

npm install

Install common package from

https://www.npmjs.com/package/@kntickets/common

npm install @kntickets/common

React - Next.js

The front-end is avaliable in client directry

REQUIRED

skaffold || docker || Kubernetes || Minikube ['Only Linux']

Configure HOSTS AT

./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

Your Connection is not private

This error is just caused due to Kubernetes Ingress Controller Fake Certificate only happens on development

TYPE

thisisunsafe

on browser to bypass the error

VALIDATE STRIPE KEY

In line number 17 of

./payments/src/test/setup.ts

Enter a valid stripe key for test to pass.

PAYMENT TIMEOUT FOR USERS

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

RUN SKAFFOLD

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/

LOAD BALANCER

Minimum THREE load balancer required to run efficeiently. Two might do the job but haven't tested for two.

'Tested on digitalocean'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published