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 it with the following commands:
$ mkdir UniversalTranslator
$ cd UniversalTranslator
- We will create placeholders for the web frontend by creating a directory named Website, and, within this directory, we will create the index.html and scripts.js files, as shown as follows:
$ 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...