Ensure you have the following tools installed before you begin:
- Node.js (v20.0.0 or higher) 🟢
- npm 📦
- AWS CLI 🛠️
- AWS CDK 🌐
To set up the project, follow these steps:
Clone the repository
git clone <repository-url>
Install dependencies in the root directory
npm install
Navigate to the infrastructure directory and install dependencies
cd infrastructure
npm install
Return to the root directory
cd ..
Kickstart the development server with:
npm run dev
This command fires up the Remix app in development mode, enabling hot reloading for a seamless coding experience.
Prepare the application for production:
npm run build
This script compiles both the Remix application and the AWS Lambda function, ensuring they are ready for deployment.
Deploy your application to AWS with ease:
npm run deploy
This command orchestrates your infrastructure and application deployment using AWS CDK, streamlining the process without requiring manual approvals.
The application operates on AWS, utilizing the following services:
- Amazon S3: Hosting static files 📦
- AWS Lambda: Handling server-side logic ⚙️
- Amazon API Gateway: Managing requests as a proxy in front of AWS Lambda 🌐
- Amazon CloudFront: Ensuring fast content delivery 🚅
Adjust the cdk.json
file as necessary to tailor the AWS CDK deployment to your specific needs.