Skip to content

Latest commit

 

History

History
103 lines (62 loc) · 2.45 KB

README.md

File metadata and controls

103 lines (62 loc) · 2.45 KB

SinFood ( In Development )

An Event Based Microservices E-food Portal using Dockerized Images for Services and Kubernetes.

Tech

Installation

Install Ingress Nginx Controller

# Windows / Mac
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.41.0/deploy/static/provider/cloud/deploy.yaml
# Linux
$ minikube addons enable ingress

Define kubernetes secret keys

$ kubectl create secret generic admin-allow-password --from-literal ADMIN_ALLOW_PASSWORD=KEY
$ kubectl create secret generic jwt-secret --from-literal JWT_KEY=KEY
$ kubectl create secret generic transporter-email-username --from-literal TRANSPORTER_EMAIL_USERNAME=KEY
$ kubectl create secret generic transporter-email-password --from-literal TRANSPORTER_EMAIL_PASSWORD=KEY
$ kubectl create secret generic stripe-secret-key --from-literal STRIPE_SECRET_KEY=KEY

❗ Local ENV Variables ❗

Client

cd client/

mv .env.example .env

Define:

REACT_APP_GOOGLE_MAPS_API_KEY ( Google maps api key that has the geocode library enabled ) REACT_APP_STRIPE_PUBLIC_KEY ( Stripe Publishable Key )

Payment

In order to test the payment libraries jest require access to the secret api keys. You can always comment out those tests if you want.

cd payment/

mv .env.example .env

Put the same value to STRIPE_SECRET_KEY as defined in the Kubernetes secrets

Seeder

cd seeder/

mv .env.example .env

Put the same value to ADMIN_ALLOW_PASSWORD as defined in the Kubernetes secrets

npm install

node-ts index.ts

Run Skaffold

$ cd/
$ skaffold dev