Let's create a similar base project structure with the steps 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 the following commands:
$ mkdir PictorialTranslator
$ cd PictorialTranslator
- We will create placeholders for the web frontend by creating a directory named Website and, within this directory, create two files index.html and scripts.js:
$ 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
- Remember that the Python...