2 Creating the Python and JavaScript web apps
This chapter covers
- Designing a basic FastAPI web app in Python
- Isolating Python projects with virtual environments
- Designing a basic Express.js web app in JavaScript and Node.js
- Initializing new Node.js projects using npm
- Tracking code changes with Git
- Pushing code to GitHub
The goal of this book is to understand how to deploy software ultimately using Kubernetes. This chapter sets the stage by giving us two different applications to deploy with. These applications will be continuously referenced throughout this book and are meant to be a stand-in for the actual applications you intend to deploy.
We’ll use the JavaScript runtime Node.js and the Python programming language as the foundation for these applications. These two languages are incredibly popular and easy to work with. They also have a number of overlapping features, but not identical ones, which require us to adjust how we think about the various nuances that go into deploying each of them. For as much as I enjoy working with these languages, this book is by no means meant to be the end-all-be-all for building and deploying applications in either Node.js or Python.