A modern full-stack application built with React and AWS Serverless technologies.
- React + TypeScript
- Vite
- shadcn/ui components
- AWS Amplify Authentication
- React Query
- React Hook Form + Zod
- Zustand State Management
- TailwindCSS
- TanStack Tables
- AWS SAM (Serverless Application Model)
- API Gateway
- Lambda Functions
- DynamoDB
- Cognito User Pools
- 🔒 Secure user authentication
- 🛡️ Protected routes & API endpoints
- 📊 Dynamic data management
- ☁️ Serverless architecture
- 📱 Responsive UI
- 🔍 Type-safe codebase
- Node.js (v18+)
- AWS CLI configured
- AWS SAM CLI
- Git
- Clone the repository:
git clone <repository-url>
cd aws-sam-react
- Install frontend dependencies:
cd frontend
npm install
- Deploy backend:
cd ../backend
sam build
sam deploy --guided
- Configure environment:
cd ../frontend
cp .env.example .env
Update .env
:
VITE_AWS_REGION=<your-region>
VITE_USER_POOL_ID=<your-user-pool-id>
VITE_USER_POOL_CLIENT_ID=<your-client-id>
VITE_API_URL=<your-api-gateway-url>
- Start development:
npm run dev
frontend/
├── src/
│ ├── components/ # UI components
│ ├── hooks/ # Custom hooks
│ ├── lib/ # Utilities
│ ├── pages/ # Page components
│ ├── store/ # State management
│ ├── App.tsx
│ ├── main.tsx
│ └── types.ts
backend/
├── template.yaml # SAM template
├── src/ # Lambda functions
└── samconfig.toml # SAM configuration
npm run build
# Deploy to your hosting service
sam build
sam deploy
# Frontend tests
cd frontend
npm test
# Backend tests
cd backend
npm test
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request