Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
DB_USER=<your_db_username>
DB_PASSWORD=<your_db_password>

# Optional: Default DB names for local development
ORDER_DB=ECommerce-Order-Service
PRODUCT_DB=ECommerce-Product-Service
INVENTORY_DB=ECommerce-Inventory-Service
NOTIFICATION_DB=ECommerce-Notification-Service


#Maitrap credentials
MAILTRAP_USERNAME=<your_mailtrap_username>
MAILTRAP_PASSWORD=<your_mailtrap_password>
MAIL_PORT=<your_mailtrap_smtp_port>
MAIL_HOST=smtp.mailtrap.io

#Twilio credentials
TWILIO_ACCOUNT_SID=<your_twilio_account_sid>
TWILIO_AUTH_TOKEN=<your_twilio_auth_token>
TWILIO_FROM_NUMBER=<your_twilio_phone_number>



#CUSTOM app config
MAIL_FROM=<from_email_address>
41 changes: 9 additions & 32 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,33 @@ on:
branches:
- master
jobs:
#first job builds all modules and skips tests
build:
name: Build All Modules (skip tests)
runs-on: ubuntu-latest
env:
FIREBASE_CONFIG_BASE64: ${{ secrets.FIREBASE_CONFIG_BASE64 }}

steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Decode and save Firebase config
run: echo $FIREBASE_CONFIG_BASE64 | base64 > firebase-service-account.json

- name: Build all modules (skipping tests)
run: mvn --batch-mode clean install -DskipTests
outputs:
build-status-key: ${{ steps.cache.outputs.cache-hit }}

#second job runs tests on the built modules
test:
name: Run Tests
runs-on: ubuntu-latest
Expand All @@ -39,35 +48,3 @@ jobs:
- name: Run tests
run: mvn --batch-mode test




# pull_request:
# branches:
# - master
#jobs:
# build-and-test:
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# service: [product-service,
# order-service,
# inventory-service,
# api-gateway,
# config-server,
# eureka-server]
# steps:
# - name: Check out the repository
# uses: actions/checkout@v4
# - name: Set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
# cache: maven
#
#
# - name: Build and test ${matrix.service}
# working-directory: ./${{ matrix.service }}
# run: mvn --batch-mode package
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ignore the environment variable file
.env
#firebase service account file
firebase-service-account.json

#ignore .idea folder
.idea/
.idea/dataSources/a90f2404-9e15-4dfd-89f6-19837ec25e53.xml
.idea/dataSources/dbb0ccd9-06dd-407f-b700-8142fac9bbbd.xml
#ignore node modules
node_modules/
#ignore build folder
build/
#ignore logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
#ignore Mac system files
.DS_Store
#ignore coverage folder
coverage/
#ignore .next folder
.next/
cls
12 changes: 12 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/copilot.data.migration.agent.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/copilot.data.migration.ask.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/copilot.data.migration.ask2agent.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/copilot.data.migration.edit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion .idea/dataSources.local.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions .idea/dataSources/1e58db9f-f780-4249-a06a-585b65d5b800.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading