Development Environment Setup
Installing and configuring the necessary tools for developing and deploying the AI SaaS Boilerplate with Python CDK
Development Environment Setup
This guide will help you set up a development environment with all the necessary tools for working with the AI SaaS Boilerplate, focusing on the Python-based AWS CDK implementation.
Required Tools
Here's a summary of the tools you'll need to install:
Tool | Version | Purpose |
---|---|---|
Python | 3.8+ | Core programming language for CDK implementation |
pip | Latest | Python package manager |
AWS CLI | v2.x+ | Command-line interface for AWS services |
AWS CDK | v2.x+ | Cloud Development Kit for infrastructure deployment |
Git | Latest | Version control system for code management |
Node.js | v20.x+ | Required for frontend development |
npm | Latest | Node.js package manager |
Docker | Latest | Required for building containerized Lambda functions |
Installation Instructions
Install Python, pip, and venv
Using Homebrew:
Python virtual environments are included with the Python installation on macOS.
Verify the installation:
Install Node.js and npm
Using Homebrew:
Verify the installation:
npm is installed automatically with Node.js, but it's good to verify both installations.
Install Docker
Install Docker Desktop for macOS:
- Download Docker Desktop from Docker's website
- Follow the installation instructions
- Start Docker Desktop
Verify the installation:
Configuring AWS CLI
After installing the AWS CLI, you need to configure it with your AWS credentials obtained from the AWS Account Setup step.
Enter Your Credentials
You'll be prompted to enter:
- AWS Access Key ID: Enter the access key ID from your IAM user
- AWS Secret Access Key: Enter the secret access key from your IAM user
- Default region name: Enter 'eu-west-2' (London region)
- Default output format: Enter 'json'
These are the credentials you obtained when creating an IAM user in the AWS Account Setup step.
Verify the Configuration
To verify that your AWS CLI is configured correctly, run:
This should return a JSON response with your account ID, user ID, and ARN, confirming that your AWS CLI is properly configured.
Example output:
Verifying Your Environment
After installing and configuring all the required tools, verify that everything is working correctly:
Next Steps
Now that you've set up your development environment with all the necessary tools and configured AWS CLI with your credentials, you're ready to proceed to Configuration to set up your environment for deployment.