diff --git a/guides/20240910_guide_srcbook.md b/guides/20240910_guide_srcbook.md index f9e1730b..5f1a536e 100644 --- a/guides/20240910_guide_srcbook.md +++ b/guides/20240910_guide_srcbook.md @@ -75,6 +75,7 @@ Now, open the `devcontainer.json` file and add the following configuration: - **Note:** - _Post Commands_: Automatically install necessary packages and start Srcbook after the container is created. - _Forward Ports_: Ensures Srcbook runs on `localhost:2150` as specified in the devcontainer.json file. + ![Port Forwarding](../guides/assets/20241207_forwarding_srcbook_port_to_localhost_img.png) ### Step 2.3: Launching the Devcontainer and Daytona @@ -91,6 +92,16 @@ Now, open the `devcontainer.json` file and add the following configuration: With Daytona running and the environment set up, you can now create a repository with a devcontainer for Srcbook: +### Step 2.5: Adding API Tools API Key + +To configure your development environment with the required API key, follow these steps: + +1. Go to the API tools dashboard. +2. Navigate to the "API Keys" section. +3. Click "Generate New Key" and copy the key. + +![Adding API Key](../guides/assets/20241207_setting_up_ai_tools_adding_api_keys_for_integration_img.png) + #### Example ```bash @@ -137,6 +148,12 @@ const greet = (name: string) => `Hello, ${name}!`; console.log(greet("Srcbook")); ``` +### Sample TypeScript Srcbook Screenshot + +Below is an example of a TypeScript notebook in Srcbook. The screenshot demonstrates a simple `greet` function: + +![Srcbook Example](../guides/assets/20241207_sample_typescript_src_book_img.png) + ## Step 5: Tips for Effective Use ### 5.1 Environment Management @@ -191,4 +208,4 @@ Explore more advanced Srcbook features by visiting the [Srcbook Documentation](h - [Daytona Documentation](https://www.daytona.io/docs) - [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/) ---- \ No newline at end of file +--- diff --git a/guides/assets/20241207_forwarding_srcbook_port_to_localhost_img.png b/guides/assets/20241207_forwarding_srcbook_port_to_localhost_img.png new file mode 100644 index 00000000..f0932082 Binary files /dev/null and b/guides/assets/20241207_forwarding_srcbook_port_to_localhost_img.png differ diff --git a/guides/assets/20241207_sample_typescript_src_book_img.png b/guides/assets/20241207_sample_typescript_src_book_img.png new file mode 100644 index 00000000..d712d744 Binary files /dev/null and b/guides/assets/20241207_sample_typescript_src_book_img.png differ diff --git a/guides/assets/20241207_setting_up_ai_tools_adding_api_keys_for_integration_img.png b/guides/assets/20241207_setting_up_ai_tools_adding_api_keys_for_integration_img.png new file mode 100644 index 00000000..7cbcaab3 Binary files /dev/null and b/guides/assets/20241207_setting_up_ai_tools_adding_api_keys_for_integration_img.png differ