resources/clients/react/elros/README.md
Elros is an opinionated boilerplate designed to speed up your development of a website that integrates with Amazon Web Services.
elros directory to your workspace.git repository with git init.When you have a copy of the boilerplate code you can treat it like any other React application. Add new components, change the folder structure, make it yours.
npm i from the same directory as this readme.npm run dev.npm run build.Authentication can be difficult. AWS offers tools like Amplify and amazon-cognito-identity-js to
assist with authentication. Even with those tools, it's still a steep learning curve. This boilerplate
offers the following to get you going faster:
The state-management system responds to redirects from Cognito Hosted UI. It tracks the current user and tokens. Cognito hosted UI is an Amazon Cognito OAuth solution. The LoginNavigation component provides a link to the hosted UI.
The CognitoAuthManager requires a user pool. The user pool ID and client ID environment variables are set in .env
# Amazon Cognito configuration. Set these values if you want to enable authentication.
VITE_COGNITO_USER_POOL_ID=
VITE_COGNITO_USER_POOL_CLIENT_ID=
VITE_COGNITO_USER_POOL_ID to the user pool ID. You can find the user pool ID
in the AWS Management Console for Amazon Cognito.VITE_COGNITO_USER_POOL_CLIENT_ID to the user pool ID. You can find the user pool ID
in the AWS Management Console for Amazon Cognito under the "App integration" tab.This boilerplate uses the Cloudscape Design System as a component library. Cloudscape was built for and is used by Amazon Web Services (AWS) products and services.
Vite is used to run the project locally and bundle it for deployment.
Vite also enables the use of .env described in Configure Amazon Cognito. If you want
to test with certain environment variables, but not commit them, you can use .env.local.