Verify Generated App for completeness

While Freddy Copilot for Developers is an incredibly powerful AI-driven tool, it's important to remember that no generative AI-powered tool is perfect. In this section, we'll guide you through the crucial step of thoroughly verifying the code generated by Freddy Copilot. This verification process ensures that the code aligns precisely with your app's vision and requirements.

You'll learn how to review, test, and fine-tune the generated code to guarantee that your Bitly URL shortener app functions flawlessly. By performing this verification, you'll have complete control and confidence in your app's functionality and can make any necessary adjustments. So, let's ensure your creation is nothing short of perfect!

Verification steps

Warning:

This tutorial is designed using Freddy Copilot for Developers version v2.0.2. The generated code is subject to change based on user prompt used and version of Freddy Copilot for Developers being used as it is currently under beta program.

  1. Navigate to newly created app, verify the manifest.json. Validate it for accuracy. The following section need to validated for accuracy

    1. Product name : Same as the selected one
    2. Placeholder : Location should be same as the inferred one at the time of creation, you can update it if needed.
    3. Request Template : make note of the template name under requests
    4. SMI Function : make note of the SMI function name under functions
  2. Navigate to config/requests.json,

    1. ensure you have a template with name same as that in requests section.
    2. If there is a an iparam being used, ensure it is <%= iparam.<iparam-name> %> not <%= iparams.<iparam-name> %>
    3. Make a note of the iparam-name
  3. Validate your config/iparams.json

    1. Ensure your name matches that of in the config/requests.json
    2. The iparam type should be text, required and secure are set to true
  4. Validate your app/scripts/app.js,

    1. Ensure there is an init() method and is being invoked.
    2. If the manifest.json has a SMI name in it, then validate if app.js have its invocation via client.request.invoke.
  5. Validate your app/index.html,

    1. Ensure there are no non-html elements in the page
    2. Ensure that element IDs being used in app.js and index.html are same. For instance, getElementById("submit-url") in app.js has an equivalent html element with id submit-url.
  6. Validate your server/server.js

    1. It must have an SMI function with same name as that in manifest.json
    2. It must have an requst template invocation via $request.invokeTemplate