You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-3
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,23 @@ To execute both the web app, the server app and the database:
74
74
-`CG_CLIENT_ID`
75
75
-`CG_CLIENT_SECRET`
76
76
-`CG_WEB_CIPHER_KEY`
77
-
- Execute the following command:
77
+
- Execute the following commands in order:
78
78
```sh
79
+
# Build and extract uber jar in order to build the docker image (invert '/' if using Windows)
80
+
code/jvm/gradlew -p code/jvm extractUberJar
81
+
82
+
# Go to the web app's directory
83
+
cd code/js
84
+
85
+
# Install npm dependencies
86
+
npm install
87
+
88
+
# Transpile TypeScript code into Javascript
89
+
npm run tsc
90
+
91
+
# Go back to the root directory
92
+
cd ../..
93
+
79
94
docker-compose -f .docker/docker-compose.yml up
80
95
```
81
96
- The web application should now be available on port `80` and the server application on port `8080`
@@ -163,8 +178,8 @@ To run the i-on CodeGarten server app locally with Docker, the `env_server` file
163
178
After setting up the environment file, the server app can be executed using the `docker-compose.yml` Docker Compose file present in the `.docker` directory:
164
179
165
180
```sh
166
-
# Build (without tests) and extract uber jar in order to build the docker image (invert '/' if using Windows)
167
-
code/jvm/gradlew -p code/jvm extractUberJar -x test
181
+
# Build and extract uber jar in order to build the docker image (invert '/' if using Windows)
182
+
code/jvm/gradlew -p code/jvm extractUberJar
168
183
169
184
# Run the server and both the database and test database on three containers
170
185
docker-compose -f .docker/docker-compose.yml up codegarten-server
0 commit comments