configure javascript

Configure Javascript

In this step, you will configure the JavaScript file that handles the logic for the front-end application (the presentation layer).

1. Configure the presentation layer to communicate with the business-logic layer.

  • In VS Code (or another code editor), edit line 3 of the file named "datagrid.js" to replace "YourWebAppURLHere" with the URL copied in the previous step


  • Save the file.  Your app is now configured and ready to run.

2. Test your application. 

  • Open the file named "datagrid.html" in a browser.  You should be able to double-click the filename in File Explorer (Windows) or Finder (Mac) to open it in you default browser.



  •  Notice that you are displaying employee data from the Airtable base.


  • These fields are all editable, so change Mike Wazowski's first name to Michael and notice that it gets changed in the Airtable base.



  • Using your app, try to delete the last name "Wazowski" from the employee record.  You will see an error that is returned by the business logic layer indicating that the last name field is not allowed to be blank.