Skip to content

Commit 0ebad8d

Browse files
committed
add scripts for running and building the application
1 parent b388b3e commit 0ebad8d

5 files changed

Lines changed: 34 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This project provides a schema conversion platform that supports converting betw
2121
### 1. Clone the repo
2222

2323
```bash
24-
git clone https://github.com/Logende/universal-schema-converter.git
24+
git clone https://github.com/Logende/schema-conversion-orchestrator.git
2525
cd universal-schema-converter
2626
```
2727

build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Build sub-packages
4+
echo "Building sub-packages..."
5+
./build_subpackages.sh
6+
7+
# Build the main application
8+
echo "Installing main application dependencies..."
9+
pip install -r schema-conversion-orchestrator/requirements.txt

build_and_run.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Build the whole project
4+
echo "Building the project..."
5+
./build.sh
6+
7+
# Run the conversion service
8+
echo "Running the conversion service..."
9+
./run.sh

build_subpackages.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Build the Java Package
4+
echo "Building Java package..."
5+
mvn -f schema-conversion-orchestrator/external_converters/java/pom.xml clean package
6+
7+
# Build the TypeScript Package
8+
echo "Building TypeScript package..."
9+
npm --prefix schema-conversion-orchestrator/external_converters/node install
10+
npm --prefix schema-conversion-orchestrator/external_converters/node run build

run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
# Run the conversion service
4+
cd schema-conversion-orchestrator || exit
5+
python3 app.py

0 commit comments

Comments
 (0)