Skip to content

Examples: Adopt structure used in the Vapor template repository #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

euanh
Copy link
Collaborator

@euanh euanh commented Apr 14, 2025

Motivation

The Vapor template repository splits the server into a main entry point file and a separate route installation function. Adopting the same structure makes this example more familiar to users who are used to the official template.

Fixes #61

Modifications

  • Adopt the Vapor template structure for HelloWorldVapor
  • Use the -warnings-as-errors flag when building end to end examples.

Result

The example works in the same way as before but has a more familiar structure for Vapor users.

Test Plan

All tests continue to pass.

@euanh euanh force-pushed the docs/update-vapor-example branch from 2e1ab06 to 96d74ea Compare April 14, 2025 10:07
@euanh euanh added area/documentation Improvements or additions to documentation semver/none No version bump required. area/testing Improvements to tests. labels Apr 14, 2025
@euanh euanh merged commit 0c9ea97 into apple:main Apr 14, 2025
23 checks passed
@euanh euanh deleted the docs/update-vapor-example branch April 14, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation area/testing Improvements to tests. semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Vapor example uses deprecated APIs and should be updated
1 participant