- Hands-On Server-Side Web Development with Swift
- Angus Yeung
- 186字
- 2021-06-10 19:00:15
Selecting a scaffolded application
For a scaffolded application, the application generator allows you to choose from one of the three preset options:
- Basic Preset:
- Embedded metrics dashboard
- Docker files
- Web Preset:
- Static web file serving
- Embedded metrics dashboard
- Docker files
- Backend for Frontend (BFF) Preset:
- Static web file serving
- Swagger UI
- Embedded metrics dashboard
- Docker files
The Basic Preset adds embedded metrics dashboard capability to gather application and system metrics and adds several Docker files for easy deployment of your project using container technology.
The Web Preset is a superset to Basic Preset and has additional file structure for serving static web content.
The Backend for Frontend (BFF) Preset adds Swagger UI to the Web Preset. Swagger UI is also known as an Open API (https://www.openapis.org), which is an industry initiative to create vendor-neutral and open specification for providing technical metadata for RESTful APIs. RESTful API stands for a programmatic interface using representational state transfer (REST) technology. We will cover the topic more in Chapter 12, Deploying to Cloud when we discuss API Gateway.
For the newWorld application, choose the Basic Preset.