Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aws amplify #123

Merged
merged 27 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
93ef31c
Add amplify configuration files to repo for now
aymanhab Oct 23, 2023
bd0a7f8
Merge branch 'lambda_docker' into add_aws_amplify
aymanhab Oct 23, 2023
1b2f820
minor cleanup and loosen parsing of file extension
aymanhab Oct 24, 2023
17de961
Addd aws-sdk dependencies
aymanhab Oct 24, 2023
5543523
Remove aws S3Trigger and refactor lambda function to use from API
aymanhab Oct 31, 2023
856ca37
install requests package/module
aymanhab Oct 31, 2023
49ee71b
Add debugging lines
aymanhab Nov 1, 2023
594d9c1
Allow lambda_function to use s3 bucket directly and remove credentials
aymanhab Nov 1, 2023
7e1c4ce
Merge branch 'master' into add_aws_amplify
aymanhab Nov 3, 2023
badb7f0
Add aws-sdk and invoke converter lambda function directly rather than…
aymanhab Nov 5, 2023
7f7ed5b
Add optional url to viewer Route to allow for arbitrary urls
aymanhab Nov 7, 2023
152331f
Add Route for mini-viewer and hide drawer accordingly
aymanhab Nov 8, 2023
36d0953
Merge remote-tracking branch 'remotes/origin/add_aws_amplify' into su…
aymanhab Nov 9, 2023
a733930
include aws refs and use url in README.md
aymanhab Nov 9, 2023
2198690
As of now just URL of aws depolyment, eventually pass in specific glt…
aymanhab Nov 9, 2023
bd48d26
Change Route to embed-viewer, add example html page, fix handling of …
aymanhab Nov 9, 2023
9995989
Added snackbars to notify video uploading.
AlbertoCasasOrtiz Nov 9, 2023
e693152
Added handling of aws keys as env variables.
AlbertoCasasOrtiz Nov 9, 2023
c517580
Added internationalization strings.
AlbertoCasasOrtiz Nov 9, 2023
07f676a
Use encoded URL for builtin models
aymanhab Nov 13, 2023
6e47cb6
remove call to setCurrentModelPath since it is passed in URL now
aymanhab Nov 13, 2023
ea019a0
Add option to share with a link
aymanhab Nov 14, 2023
d248d96
Merge remote-tracking branch 'remotes/origin/support_share_embed' int…
aymanhab Nov 16, 2023
657a06c
Merge remote-tracking branch 'remotes/origin/support_share_embed' int…
aymanhab Nov 16, 2023
43ada4f
Implemented login, logout and register with amplify.
AlbertoCasasOrtiz Nov 16, 2023
bb08702
Merge branch 'master' into add_aws_amplify
aymanhab Nov 20, 2023
9110826
Merge branch 'master' into add_aws_amplify
aymanhab Nov 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading