Skip to content

Commit 2b8fcfa

Browse files
committed
Created a bash script to set up the entire project
1 parent 9510464 commit 2b8fcfa

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
This is the CPSC 410 - Advanced Software Engineering group project.
66

7+
## How to run the example server visualization
8+
9+
If you are using a UNIX based OS, you can run the bash script that will set up the backend server, start up the frontend react server, and make some API calls to the backend endpoints to
10+
fill up the visualization. It may take >10s to set everything up for the first time. Just run the following command:
11+
12+
```shell script
13+
./run.sh
14+
```
15+
716
## How to compile and run the language
817

918
Write the code in a file with a `.dsl` extension and place it in the `src/main/java/cpsc/dlsproject` directory.
@@ -21,7 +30,7 @@ Run a server through a language snippet following the instructions above.
2130
Go to directory `client/src` and run the following command
2231

2332
```shellscript
24-
node testclient.js <endpoint-path> <number-of-calls-to-the-endpoint>
33+
node testclient.js
2534
```
2635

2736
## EBNF

client/src/testclient.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node testclient.js

run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gnome-terminal --command="./start-server.sh"
2+
sleep 10s
3+
gnome-terminal -e '/bin/bash -c "cd ~/dsl-project/client/src; node testclient.js"'
4+
gnome-terminal -e '/bin/bash -c "cd ~/dsl-project/client/src; npm start"'

start-server.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mvn -DskipTests package exec:java -Dexec.mainClass=cpsc.dlsproject.App -Dexec.args="simple.dsl"

0 commit comments

Comments
 (0)