Awesome
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/hummingbird-project/hummingbird/assets/9382567/48de534f-8301-44bd-b117-dfb614909efd"> <img src="https://github.com/hummingbird-project/hummingbird/assets/9382567/e371ead8-7ca1-43e3-8077-61d8b5eab879"> </picture> </p> <p align="center"> <a href="https://swift.org"> <img src="https://img.shields.io/badge/swift-5.9-brightgreen.svg"/> </a> <a href="https://discord.gg/7ME3nZ7mP2"> <img src="https://img.shields.io/badge/chat-discord-brightgreen.svg"/> </a> </p>Example Code
Examples converted to Hummingbird 2.0
- auth-cognito - Authentication via AWS Cognito.
- auth-jwt - Authentication using JWT.
- auth-otp - Using one time passwords authentication.
- auth-srp - Secure Remote Password authentication.
- graphql-server - GraphQL server using Graphiti
- hello - Basic application setup.
- html-form - Link a Mustache rendered HTML form to Hummingbird application.
- http2 - Basic application with HTTP2 upgrade added.
- jobs - Demonstrating offloading of jobs to another server.
- multipart-form - HTML form using Multipart form data, using MultipartKit
- proxy-server - Using AsyncHTTPClient to build a proxy server
- response-body-processing - Example showing how to process a response body in middleware.
- s3-file-provider - Use a custom FileProvider to serve files from S3 with FileMiddleware.
- sessions - Username/password and session authentication.
- todos-dynamodb - Todos application, based off TodoBackend spec, using DynamoDB.
- todos-fluent - Todos application, based off TodoBackend spec, using Fluent
- todos-lambda - Todos application, based off TodoBackend spec, using DynamoDB and running on AWS Lambda.
- todos-mongokitten-openapi - Todos application, using MongoDB driver MongoKitten and the OpenAPI runtime.
- todos-postgres-tutorial - Todos application, based off TodoBackend spec, using PostgresNIO. Sample code that goes along with the Todos tutorial.
- upload - File uploading and downloading.
- upload-s3 - File uploading and downloading using AWS S3 as backing store.
- webauthn - Web app demonstrating WebAuthn(PassKey) authentication.
- websocket-chat - Simple chat application using WebSockets.
- websocket-echo - Simple WebSocket based echo server.
And finally
- todos-auth-fluent - This is a more complete example which shows authentication, CRUD operations and mustache rendering all in one app.
External Examples
These packages bundle examples with Hummingbird 2:
- Elementary Demo - An HTML application rendered from Hummingbird by Elementary
- ElementaryHTMX Demo - An HTMX application that communicates with Hummingbird, rendered by Elementary and ElementaryHTMX
- OracleNIO Examples - Examples of using OracleNIO with Hummingbird