Skip to content

welcloud-io/wio-from-diagram-to-code-with-amazon-q-developer

Repository files navigation

From Diagram to Code with Amazon Q Developer

This repo is a list of tutorials related to this blog post:

https://dev.to/welcloud-io/from-diagram-to-code-with-amazon-q-developer-2da4

You can also find some live demos in these videos:

https://www.youtube.com/watch?v=D6cYFDoX1Es&list=PL7uUliWSzuvF0GS9jpaFGQxLKGC0CC2vq https://www.youtube.com/watch?v=QuAlzUVqi7I&t=4293s

This demonstrates how you can generate diagrams from an application code, but also how to generate code from diagrams using Amazon Q Developer in the Visual Studio Code IDE.

test


Prerequisites

I assume that you are using a Linux Ubuntu 22-04 distribution, but the instructions below can be adapted to your environment.

1) Install & start VS Code (If not done yet in your environment)

The official procedures to install & start VS Code is there:

https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions

N.B.: These simple commands below work for me to intsall & start VS Code on Linux Ubuntu 22-04:

$> sudo snap install --classic code
$> code

2) Clone the repo & go to the tutorial folder

Open a terminal in VS Code and execute the following commands

$> git clone https://github.com/welcloud-io/wio-from-diagram-to-code-with-amazon-q-developer.git
$> cd wio-from-diagram-to-code-with-amazon-q-developer/

3) Configure VS Code

3.1) Configure VS Code Manually (Option 1)

N.B. You can attempt to configure VS Code automatically if it's a fresh installation (see Option 2)

Install Amazon Q Developer extension & Enable @workspace

Q Developer plugin installation: https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/q-in-IDE-setup.html#setup-vscode

Q Developer setting options to tick: https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/workspace-context.html

Then connect to Amazon Q with your builder ID

Install Mermaid extension

https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid

Install Draw.io Integration extension

https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio

Then:

  • Go to 'File > Preferences > Settings'
  • Search for 'editorasso' setting
  • Add the following association item: *.drawio.xml => hediet.vscode-drawio-text)

3.2) Configure VS Code Automatically (Option 2)

Be aware that this may not work if your environment has some settings already

$> ./setup-vscode.sh

Once done, connect to Amazon Q Developer using your Builder ID (folow the procedure in VS Code)

4) Install Q CLI & MCP utils (Optional)

Amazon Q Developer CLI (Command Line Interface) and MCP utils are used for some tutorials, but not for all.

Install MCP Utils

To test MCP servers tutorials you should install uv & fastmcp. You can use python pip or this script.

$> ./install-mcp-utils.sh

Install Q CLI

To install Q CLI, you either follow this link:

https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-installing.html

OR you can attempt using this script in you terminal (n.b. it's only been tested on Linux Ubuntu 22-04):

$> ./install-q-cli.sh

Start tutorials

Follow tutorial instructions in the tutorial readme

CLASSIC TUTORIALS INSTRUCTIONS

MORE TUTORIALS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published