This is in Typescript/React based AWS Amplify Web Application, designed to tag, and store Smalgyax Language Learning Documents.
- Typescript
- React
- Amplify
- S3
- DynamoDB
- OpenSearch
- Lambda (w/ Javascript)
OpenID Auth w/:
- Amazon
- Title
- English
- Smalgyax, BC Orthography
- Smalgyax, AK Orthography
- Description
- English
- Smalgyax, BC Orthography
- Smalgyax, AK Orthography
Checkout the code and pull the desired amplify enviornment.
Follow Normal Amplify Environment Setup, and publish changes.
After amplify publish
- Setup Initial Owner user, and Box
- In AWS Cognito browse to
User Pools -> <user-pool-name> -> Groups
then
click on[Create group]
and name the groupWebAppAdmin
- In a new browser tab, Open the Web Application and navigate to the login page. Create a new user, ignore the error message
- Back in the cognito, add the new user to the
WebAppAdmin
group. - Set the user GUID in the
src/Box/boxTypes.ts
file - Publish the change
- Open the Web Application and create the public group.
- In DynamoDB browse to
Tables -> Xbiis-<ID string>-<env>
then click on[Explore table items]
- Set the
id
to value to match theintialXbiis.id
value
from thesrc/Box/boxTypes.ts
file - Tick the confirm box
- Click
Save and close
- Set the
- In AWS Cognito browse to
- Setup OpenSearch Access
- In OpenSearch
browse to
Domains -> <amplify-domain>
- Copy the
Domain Endpoint
Url - Paste the Url into the
node
value into theosClient
constructor in theamplify/backend/function/ingestTrigger/src/index.js
file
- Copy the
amplify publish
the change.- In a new tab open CloudWatch
browse to
Live Tail
- Set filtering to:
/aws/lambda/ingestTrigger-<env>
- Click on
Start0
- Set filtering to:
- in a new browser tab, Ingest (upload) a file
2. Go to the upload page
- Give the file a title
- Add a new author
- Select a file to upload
- upload the file
- Go back to the cloudwatch tab and check the error message
- Copy the user arn from the error message
- Back in the OpenSearch Tab
Domains -> <amplify-domain> -> Security configuration
- Click on
[Edit]
- Switch to
Visual editor
- Change Type to
IAM ARN
- Paste the User ARN to Principal
- Set Action to
Allow
- Change Type to
- Click on
Save changes
- Update file, so the contents will be in OpenSearch.
- In OpenSearch
browse to
This project was bootstrapped with Create React App, using the Redux and Redux Toolkit TS template.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc.) right into your project, so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However, we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.