Skip to content

Conversation

@Alec13355
Copy link
Member

@Alec13355 Alec13355 commented Oct 17, 2024

Fixes #11

Add a Javascript version of the console app.

  • New Directory and Files

    • Add SampleConsoleAppJS/Program.js implementing the main program logic in Javascript.
    • Add SampleConsoleAppJS/config.json for configuration settings.
  • Program Logic

    • Implement the main program logic in SampleConsoleAppJS/Program.js using axios for HTTP requests and JSON.parse for handling JSON responses.
    • Implement three API calls: translation, OpenAI call, and final translation.
  • Configuration

    • Add configuration settings in SampleConsoleAppJS/config.json similar to SampleConsoleApp/example-appsettings.json.
  • README Update

    • Update README.md to include instructions for running the Javascript version of the console app.
    • Add a section for the Javascript version under "Running the Program with a Command Line Argument".
    • Provide an example command for running the Javascript version.

For more details, open the Copilot Workspace session.

Fixes #11

Add a Javascript version of the console app.

* **New Directory and Files**
  - Add `SampleConsoleAppJS/Program.js` implementing the main program logic in Javascript.
  - Add `SampleConsoleAppJS/config.json` for configuration settings.

* **Program Logic**
  - Implement the main program logic in `SampleConsoleAppJS/Program.js` using `axios` for HTTP requests and `JSON.parse` for handling JSON responses.
  - Implement three API calls: translation, OpenAI call, and final translation.

* **Configuration**
  - Add configuration settings in `SampleConsoleAppJS/config.json` similar to `SampleConsoleApp/example-appsettings.json`.

* **README Update**
  - Update `README.md` to include instructions for running the Javascript version of the console app.
  - Add a section for the Javascript version under "Running the Program with a Command Line Argument".
  - Provide an example command for running the Javascript version.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AzureCloudWorkshops/ACW-GenAI-UniversalTranslator/issues/11?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite the console app in Javascript

1 participant