Create a similar base project structure to the one we outlined in Chapter 2, Anatomy of a Modern AI Application, including pipenv, chalice, and the web files:
- In the terminal, we will create the root project directory and enter it with the following commands:
$ mkdir ContactOrganizer
$ cd ContactOrganizer
- We will create placeholders for the web frontend by creating a directory named Website. Within this directory, we will create two files, index.html and scripts.js, as shown in the following code:
$ mkdir Website
$ touch Website/index.html
$ touch Website/scripts.js
- We will create a Python 3 virtual environment with pipenv in the project's root directory. Our Python portion of the project needs two packages, boto3 and chalice. We can install them with the following commands:
$ pipenv --three
$ pipenv install boto3
$ pipenv install chalice...