Let's try replicating the API endpoint we did for 311 in the previous chapter as a serverless application. For that, we'll use a framework called Chalice.
Chalice is a Python package for serverless applications on AWS, and is itself developed by Amazon. It can take care of an application, from its template all the way to deployment. It's also great for testing, as it emulates deployment with no fee, authentication, or even internet connection required.
Before we start working on our serverless application, let's ask Chalice to generate a template. In your terminal, type this:
chalice new-project
After this, type the name of the project: 311estimate. This will generate a new folder with a few files:
311estimate/ | ├── .chalice/ │ └── config.json | ├── .gitignore...