Skip to content

Commit

Permalink
chore: cleanup directory structure (#2)
Browse files Browse the repository at this point in the history
jihoon gave me permission to self-approve :D
  • Loading branch information
ztdevelops authored Feb 25, 2024
1 parent 4e1a1e9 commit 119b15f
Show file tree
Hide file tree
Showing 33 changed files with 48 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROJECT_NAME = "esd"
LOCAL_DEPLOY_DIR = "deployment/docker"
NPM_SUBDIRS = user-storage client
NPM_SUBDIRS = backend/simple/user-storage client

npm-install: npm-install-subdirectories
@echo "Running npm install to set up Husky and other dependencies..."
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions backend/simple/user-storage/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
DB=user_storage_db
DB_HOST=user-storage-db
DB_PORT=5432
DB_USER=user_storage_user
DB_PASSWORD=user_storage_password

REDIS_HOST=user-redis
REDIS_PORT=6379
REDIS_USERNAME=default
REDIS_PASSWORD=password

GRPC_PORT=0.0.0.0:50051
GOOGLE_CLIENT_ID=732452164989-t5obdqk38155erts9be9u6rg0fik7ptk.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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

JWT_SECRET_KEY="KUKUBIRDAIDHAIDHAJKSDAJIDBQIheh09u2jeqinwdjnbqwsdifhnw0euq2e0nqwdo"

URL_ENVIRONMENT_PREFIX=test
MYINFO_CLIENT_ID=STG2-MYINFO-SELF-TEST
MYINFO_SUBENTITY_ID=""
MYINFO_CLIENT_PRIVATE_SIGNING_KEY="-----BEGIN EC PRIVATE KEY-----MHcCAQEEIGcOBk0/8HtXAR8XkSinGpVE4GTmbPQnjkhGO+A+QrPaoAoGCCqGSM49AwEHoUQDQgAEBXUWq0Z2RRFqrlWbW2muIybNnj/YBxflNQTEOg+QmCS9c7gbjIOjSI5UkDOYRbIhnBfCdKcbE8itl7tJfQ8q7g==-----END EC PRIVATE KEY-----"
MYINFO_CLIENT_PRIVATE_ENCRYPTION_KEYS="-----BEGIN EC PRIVATE KEY-----MHcCAQEEIDr6SLHbruSfQuLOxvc6nAL3w+/Dg9C3pge1aGuZ8rn2oAoGCCqGSM49AwEHoUQDQgAENfIxJudBO1/XD4DnhkVKPonHux0LG12O3D+Z2NfsuEHYcbp7IlwQQFVlSnViUXnstYyUAibJK43nBBx4Suaj3w==-----END EC PRIVATE KEY-----"
MYINFO_CALLBACK_URL=http://localhost:3001/callback
MYINFO_PURPOSE_ID=demonstration
MYINFO_SCOPES="uinfin name email"

SGID_CLIENT_ID=IS213EDUCATIONHELPER-8a50e86d
SGID_CLIENT_SECRET=877a5e8ef604594cc726e21381bd7a22
SGID_REDIRECT_URL=http://localhost:3001/auth/sgid/callback
SGID_SCOPES="openid"
SGID_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9jzrWZ5mU8VKcvrMuq621cLyd6M/QBbZzoisu/U1qdI8LWltxGuvfrO7VsmdOM5d+tdfQhb5b4JbO6msFoachq49oXtfgA3lLYiYbb4P0CWl9zRQ2XJ+wu1y4777glDbsS+XHEPNZms+OHCnfO6i8oW5H57RfrFFvok0AXuXsaOcRlfJ9GlNy6w2VXBD3kIPdpvimOwnRVTlcwEe/Cs9e0LNEh/Z6AVStnyaCjA3NW4hap+fOQPYbyRzYMdk6kzoiwDZ1GMqA991eLrQoN30TlMDOfy5hDQMzKy1bCEpOvOVHo318h2Ul71feig+YrWsSNjKZ0gLeudv0w8Sj1oL5wIDAQAB-----END PUBLIC KEY-----"
SGID_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQD2POtZnmZTxUpy+sy6rrbVwvJ3oz9AFtnOiKy79TWp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ZAwfXBtBY0HfrGuPC6n2RrYK5PeSIp2U4weMHAkO2Gsi7+4+1V3HUObijwj550urazszevuNeOhPR0ZobddVWZRtXAoGAELguUGjI1hRlgsV1iNyudCkoRtm4wZH8WmAZNPcsVhBhJ2GNSOnj2w7aBYvr/QwdpTm4DWjE/s/HfjzeA8PMTNdh0XeXQYr6505yocmO5FUkZE9LDfBkW4HIG+8koSS7WFGO4+PdY2JNgOLR8v0iYCbjW7EMcSxfJjlDY0UHIRECgYABqWWL9If+r2giALLT6OE01IquESFY9Sd//DE9rhTSz1im4jVIZmZ+aNilmtY51h8YS4MTj9GHwSKJeCadtD3EbfXPsCVUmajsSDnFvFSpsUA055tTzAoq9NbQwjUASePJA8DR8vg6YoI0Y2J2lctxjtvchbd4vdqa4nB55GfZ1g==-----END PRIVATE KEY-----"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 10 additions & 2 deletions client/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
# -----------------------------------------------
VITE_TELEGRAM_BOT_API_KEY = ''
VITE_GOOGLE_MAP_API_KEY=""
VITE_GOOGLE_CLIENT_ID=563635941658-naqb6b9b021fqsqesdrfqds3dgbrap35.apps.googleusercontent.com
VITE_GOOGLE_CLIENT_ID=732452164989-t5obdqk38155erts9be9u6rg0fik7ptk.apps.googleusercontent.com
VITE_LOCATIONIQ_ACCESS_TOKEN=""
VITE_STORAGE_KEY=helloworld
VITE_API_BASE_URL=http://localhost:8000
VITE_API_BASE_URL=http://localhost:8000

VITE_URL_ENVIRONMENT_PREFIX=test
VITE_MYINFO_CLIENT_ID=STG2-MYINFO-SELF-TEST
VITE_MYINFO_REDIRECT_URL=http://localhost:3001/callback
VITE_MYINFO_SCOPE="uinfin name email"
VITE_MYINFO_PURPOSE_ID=demonstration
VITE_MYINFO_AUTH_API_URL=https://test.api.myinfo.gov.sg/com/v4/authorize
VITE_MYINFO_METHOD=S256
10 changes: 5 additions & 5 deletions deployment/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ volumes:
services:
kong-gateway:
image: kong:latest
build: ../../kong-gateway
build: ../../backend/kong-gateway
environment:
<<: *common-env
KONG_DATABASE: off
Expand All @@ -39,12 +39,12 @@ services:
- kong_db_password
restart: on-failure
volumes:
- ../../kong-gateway/kong.yml:/etc/kong/kong.yml
- ../../kong-gateway/authn-kong:/usr/local/share/lua/5.1/kong/plugins/authn-kong
- ../../kong-gateway/protos:/usr/local/share/lua/5.1/kong/protos
- ../../backend/kong-gateway/kong.yml:/etc/kong/kong.yml
- ../../backend/kong-gateway/authn-kong:/usr/local/share/lua/5.1/kong/plugins/authn-kong
- ../../backend/kong-gateway/protos:/usr/local/share/lua/5.1/kong/protos

user-storage-service:
build: ../../user-storage
build: ../../backend/simple/user-storage
image: user-storage-service:1.0
depends_on:
kong-gateway:
Expand Down

0 comments on commit 119b15f

Please sign in to comment.