Skip to content

Commit

Permalink
Merge pull request #123 from opensim-org/add_aws_amplify
Browse files Browse the repository at this point in the history
Add aws amplify
  • Loading branch information
aymanhab authored Nov 29, 2023
2 parents 7de55c3 + 9110826 commit 65ec2b5
Show file tree
Hide file tree
Showing 27 changed files with 23,861 additions and 9,947 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,27 @@ yarn-error.log*

# uploaded model files
src/backend/backend/model_files

#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/mock-api-resources
amplify/backend/amplify-meta.json
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
**.sample
#amplify-do-not-edit-end

.env
14 changes: 14 additions & 0 deletions ExamplePageIFrame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Model Viewer Embedded</title>
</head>
<body>
<iframe src="http://localhost:3000/embed-viewer/%2Fbuiltin%2Farm26.gltf" width="700" height="700" >
</iframe>
</body>
<h3>This refers to a local server but will refer to public once this branch is deployed!</h3>
<a href="https://simtk-confluence.stanford.edu:8443/display/OpenSim/Musculoskeletal+Models" target="_blank"> Model info</a>
</html>
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Latest build is available here https://comforting-speculoos-d9e100.netlify.app/

Latest deployed website https://master.d38m6crwj74ueg.amplifyapp.com/

This project is tested with [BrowserStack](https://www.browserstack.com)
<iframe src="https://master.d7iaa9a9lxtm6.amplifyapp.com/viewer" width="800" height="600">
</iframe>

Latest production build of the viewer is available [here](https://comforting-speculoos-d9e100.netlify.app/viewer)

Expand Down
17 changes: 17 additions & 0 deletions amplify/.config/project-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"providers": [
"awscloudformation"
],
"projectName": "opensimviewer",
"version": "3.1",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm.cmd run-script build",
"StartCommand": "npm.cmd run-script start"
}
}
}
63 changes: 63 additions & 0 deletions amplify/cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"features": {
"graphqltransformer": {
"addmissingownerfields": true,
"improvepluralization": false,
"validatetypenamereservedwords": true,
"useexperimentalpipelinedtransformer": true,
"enableiterativegsiupdates": true,
"secondarykeyasgsi": true,
"skipoverridemutationinputtypes": true,
"transformerversion": 2,
"suppressschemamigrationprompt": true,
"securityenhancementnotification": false,
"showfieldauthnotification": false,
"usesubusernamefordefaultidentityclaim": true,
"usefieldnameforprimarykeyconnectionfield": false,
"enableautoindexquerynames": true,
"respectprimarykeyattributesonconnectionfield": true,
"shoulddeepmergedirectiveconfigdefaults": false,
"populateownerfieldforstaticgroupauth": true
},
"frontend-ios": {
"enablexcodeintegration": true
},
"auth": {
"enablecaseinsensitivity": true,
"useinclusiveterminology": true,
"breakcirculardependency": true,
"forcealiasattributes": false,
"useenabledmfas": true
},
"codegen": {
"useappsyncmodelgenplugin": true,
"usedocsgeneratorplugin": true,
"usetypesgeneratorplugin": true,
"cleangeneratedmodelsdirectory": true,
"retaincasestyle": true,
"addtimestampfields": true,
"handlelistnullabilitytransparently": true,
"emitauthprovider": true,
"generateindexrules": true,
"enabledartnullsafety": true,
"generatemodelsforlazyloadandcustomselectionset": false
},
"appsync": {
"generategraphqlpermissions": true
},
"latestregionsupport": {
"pinpoint": 1,
"translate": 1,
"transcribe": 1,
"rekognition": 1,
"textract": 1,
"comprehend": 1
},
"project": {
"overrides": true
}
},
"debug": {
"shareProjectConfig": true
}
}
26 changes: 26 additions & 0 deletions amplify/team-provider-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"dev": {
"awscloudformation": {
"AuthRoleName": "amplify-opensimviewer-dev-101047-authRole",
"UnauthRoleArn": "arn:aws:iam::660440363484:role/amplify-opensimviewer-dev-101047-unauthRole",
"AuthRoleArn": "arn:aws:iam::660440363484:role/amplify-opensimviewer-dev-101047-authRole",
"Region": "us-west-2",
"DeploymentBucketName": "amplify-opensimviewer-dev-101047-deployment",
"UnauthRoleName": "amplify-opensimviewer-dev-101047-unauthRole",
"StackName": "amplify-opensimviewer-dev-101047",
"StackId": "arn:aws:cloudformation:us-west-2:660440363484:stack/amplify-opensimviewer-dev-101047/9df35da0-6f6b-11ee-a3d0-06fb26805acf",
"AmplifyAppId": "d7iaa9a9lxtm6"
},
"categories": {
"hosting": {
"S3AndCloudFront": {}
},
"auth": {
"opensimviewer423590f5": {}
},
"storage": {
"viewerStorageResouce": {}
}
}
}
}
Loading

0 comments on commit 65ec2b5

Please sign in to comment.