This repository contains a project for generating images using Amazon Bedrock. The project is divided into two main folders: API
and UI
.
- API: Developed in Node.js
- UI: Developed in React.js
- Node.js (minimum version 18)
-
Navigate to the
API
folder:cd API
-
Install the dependencies:
npm install
-
Rename the .env.sample file to .env and paste your AWS Bedrock credentials into the .env file.
AWS_REGION= AWS_ACCESS_KEY= AWS_SECRET_KEY=
-
Navigate to the
UI
folder:cd UI
-
Install the dependencies:
npm install
To test the demo, follow these steps:
-
Start the API by running the following command in the API folder:
npx ts-node src/index.ts
-
Start the UI by running the following command in the UI folder:
npm run dev
-
Open the app in your browser using the URL:
http://localhost:5173
Feel free to open issues or submit pull requests if you have any improvements or bug fixes.