This repository provides a starter template for creating applications using React+Vite and AWS Amplify, emphasizing easy setup for authentication, API, and database capabilities.
This template equips you with a foundational React application integrated with AWS Amplify, streamlined for scalability and performance. It is ideal for developers looking to jumpstart their project with pre-configured AWS services like Cognito, AppSync, and DynamoDB.
- Authentication: Setup with Amazon Cognito for secure user authentication.
- API: Ready-to-use GraphQL endpoint with AWS AppSync.
- Database: Real-time database powered by Amazon DynamoDB.
To run the application locally:
- Install dependencies:
npm install- Start the local backend sandbox:
npx ampx sandboxThis will start a local instance of your Amplify backend services. The sandbox provides local development capabilities without deploying to the cloud.
- Start the development server:
npm run devThe application will be available at http://localhost:5173
For testing:
npm run test # Run tests once
npm run test:dev # Run tests in watch modeNote: The npx ampx sandbox command requires:
- AWS Amplify CLI installed (
npm install -g @aws-amplify/cli) - Valid AWS credentials configured
- Amplify project initialized (
amplify init)
For detailed instructions on deploying your application, refer to the deployment section of our documentation.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.