Skip to content

Commit

Permalink
Merge pull request #101 from mongodb-developer/STAGING
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
ctcac00 authored Mar 7, 2024
2 parents b79d108 + 65b1285 commit 54f26fb
Show file tree
Hide file tree
Showing 193 changed files with 13,991 additions and 592 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
PROD_IP: ${{ secrets.PROD_IP }}
STAGING_IP: ${{ secrets.STAGING_IP }}

GAME_CLIENT_PORT: ${{ secrets.GAME_CLIENT_PORT }}

CONNECTION_STRING_PROD: ${{ secrets.CONNECTION_STRING_PROD }}
REST_SERVICE_IP_PROD: ${{ secrets.REST_SERVICE_IP_PROD }}
REST_SERVICE_PORT_PROD: ${{ secrets.REST_SERVICE_PORT_PROD }}
Expand Down Expand Up @@ -48,6 +50,8 @@ jobs:
echo "ATLAS_CHART_ID_PLAYER=${ATLAS_CHART_ID_PLAYER_STAGING}" >> $GITHUB_ENV
echo "ATLAS_CHART_ID_HOME=${ATLAS_CHART_ID_HOME_STAGING}" >> $GITHUB_ENV
echo "GAME_CLIENT_PORT=${GAME_CLIENT_PORT}" >> $GITHUB_ENV
else
echo "ENVIRONMENT_IP=${PROD_IP}" >> $GITHUB_ENV
echo "DATABASE_NAME=Leafsteroids" >> $GITHUB_ENV
Expand All @@ -60,6 +64,8 @@ jobs:
echo "ATLAS_CHART_ID_PLAYER=${ATLAS_CHART_ID_PLAYER_PROD}" >> $GITHUB_ENV
echo "ATLAS_CHART_ID_HOME=${ATLAS_CHART_ID_HOME_PROD}" >> $GITHUB_ENV
echo "GAME_CLIENT_PORT=${GAME_CLIENT_PORT}" >> $GITHUB_ENV
fi
- name: Checkout Code
Expand Down Expand Up @@ -109,6 +115,9 @@ jobs:
echo "ATLAS_CHART_ID_EVENT=${{ env.ATLAS_CHART_ID_EVENT }}" >> ./website/.env
echo "ATLAS_CHART_ID_PLAYER=${{ env.ATLAS_CHART_ID_PLAYER }}" >> ./website/.env
echo "ATLAS_CHART_ID_HOME=${{ env.ATLAS_CHART_ID_HOME }}" >> ./website/.env
echo "ATLAS_CHART_ID_HOME=${{ env.ATLAS_CHART_ID_HOME }}" >> ./website/.env
echo "GAME_CLIENT_PORT=${{ env.GAME_CLIENT_PORT }}" >> ./website/.env
- name: Copy The website Directory To The AWS EC2 Instance
run: |
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
.env
.idea/

game_client/build_web/Build/build_web.data
game_client/build_web/Build/build_web.framework.js
game_client/build_web/Build/build_web.loader.js
game_client/build_web/Build/build_web.wasm
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ Open http://127.0.0.1:8001/ to verify the website is running.

- Switch into the `game_client` folder.
- In the `Assets` folder, make a copy of the `.env.template` file and call it `.env`.
- Adjust the IP in the `.env` folder to your `rest_service`. Leave as is when running locally.
- Adjust the REST_SERVICE_IP in the `.env` folder to your `rest_service`. Leave as is when running locally.
- Adjust the EVENT_ID to the event you want to use (from the `events` collection).
- Adjust the WEBSITE_URL to your local website with port (don't add a trailing `/`).
- Run the game.

## Contributors
Expand All @@ -73,3 +75,4 @@ Open http://127.0.0.1:8001/ to verify the website is running.
- [Hubert Nguyen](https://)
- [Nic Raboy](https://www.nraboy.com)
- [Sig Narváez](https://www.linkedin.com/in/signarvaez/)
- [Carlos Castro](https://www.linkedin.com/in/carloscastromdb/)
4 changes: 2 additions & 2 deletions atlas_app_services/Leafsteroids/.mdb/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"config_version": 20210101,
"app_id": "65b7e96b800b13c7465d53fd",
"app_id": "65b7ea4a6277f0a9951a1ec8",
"group_id": "5afe975896e8212ab719aef0",
"client_app_id": "application-0-pnlkr"
"client_app_id": "leafsteroids-zrfhz"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mongodb-atlas",
"type": "mongodb-atlas",
"config": {
"clusterName": "RealmCluster",
"clusterName": "demo",
"readPreference": "primary",
"wireProtocolEnabled": false
},
Expand Down
6 changes: 3 additions & 3 deletions atlas_app_services/Leafsteroids/realm_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"app_id": "application-0-pnlkr",
"app_id": "leafsteroids-zrfhz",
"config_version": 20210101,
"name": "Application-0",
"provider_region": "aws-us-east-1",
"name": "Leafsteroids",
"provider_region": "aws-eu-west-1",
"deployment_model": "LOCAL"
}
5 changes: 5 additions & 0 deletions game_client/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"visualstudiotoolsforunity.vstuc"
]
}
10 changes: 10 additions & 0 deletions game_client/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Unity",
"type": "vstuc",
"request": "attach",
}
]
}
61 changes: 61 additions & 0 deletions game_client/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.vs": true,
"**/.gitmodules": true,
"**/.vsconfig": true,
"**/*.booproj": true,
"**/*.pidb": true,
"**/*.suo": true,
"**/*.user": true,
"**/*.userprefs": true,
"**/*.unityproj": true,
"**/*.dll": true,
"**/*.exe": true,
"**/*.pdf": true,
"**/*.mid": true,
"**/*.midi": true,
"**/*.wav": true,
"**/*.gif": true,
"**/*.ico": true,
"**/*.jpg": true,
"**/*.jpeg": true,
"**/*.png": true,
"**/*.psd": true,
"**/*.tga": true,
"**/*.tif": true,
"**/*.tiff": true,
"**/*.3ds": true,
"**/*.3DS": true,
"**/*.fbx": true,
"**/*.FBX": true,
"**/*.lxo": true,
"**/*.LXO": true,
"**/*.ma": true,
"**/*.MA": true,
"**/*.obj": true,
"**/*.OBJ": true,
"**/*.asset": true,
"**/*.cubemap": true,
"**/*.flare": true,
"**/*.mat": true,
"**/*.meta": true,
"**/*.prefab": true,
"**/*.unity": true,
"build/": true,
"Build/": true,
"Library/": true,
"library/": true,
"obj/": true,
"Obj/": true,
"Logs/": true,
"logs/": true,
"ProjectSettings/": true,
"UserSettings/": true,
"temp/": true,
"Temp/": true
},
"omnisharp.enableRoslynAnalyzers": true,
"dotnet.defaultSolution": "game_client.sln"
}
Loading

0 comments on commit 54f26fb

Please sign in to comment.