This repository provides a starter template for creating applications with Storage Browser for S3 using React+Vite and AWS Amplify, emphasizing easy setup for authentication and S3 capabilities.
This template equips you with a foundational React application integrated with AWS Amplify Auth and Storage Browser, streamlined for scalability and performance. It is ideal for developers looking to jumpstart their Storage Browser project with pre-configured AWS services like Cognito and S3.
- Authentication: Setup with Amazon Cognito for secure user authentication with email login.
- More info on how to setup and configuration option: https://docs.amplify.aws/react/build-a-backend/auth/set-up-auth/
- Storage: Configured with multiple S3 buckets and granular access controls. The sample is configured with
- Default storage bucket with public, admin, and private access paths
- Secondary storage bucket with separate backup paths.
- More info on how to setup : https://docs.amplify.aws/react/build-a-backend/storage/set-up-storage/#building-your-storage-backend
- UI Components: Pre-integrated Amplify UI React components including:
- Authenticator for sign-in/sign-up flows
- Storage Browser for S3 file management.
├── amplify/ # Amplify Gen 2 backend configuration
│ ├── auth/ # Authentication configuration
│ ├── storage/ # S3 storage configuration
│ └── backend.ts # Main backend definition
├── src/
│ ├── App.tsx # Main application component
│ └── main.tsx # Application entry point
└── package.json # Project dependencies
-
Clone this repository
git clone <repository-url> cd sample-amplify-storage-browser
-
Install dependencies
npm install
-
Initialize and deploy the Amplify backend
npx ampx sandbox
-
Start the development server
npm run dev
For detailed instructions on deploying your application, refer to the deployment section of our documentation.
See CONTRIBUTING for more information.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.
These sample applications are provided as a reference to help get started easily and are not supported by AWS Support.