coenttb-com-server
is the source code for coenttb.com, written entirely in Swift in the style of PointFree and powered by Vapor & coenttb-web.
Read more about me in my introductory post on coenttb.com.
- Built entirely in Swift: Approachable for newcomers and powerful for experts. It is fast, modern, safe, and a joy to write.
- Fully type safe: Every interaction, from request to response, is statically checked at compile time, ensuring runtime reliability and minimizing bugs.
- Hypermodular: Each module integrates only the parts that it needs.
Building in Swift for the web is worth it, but the ecosystem is not yet mature. By open-sourcing this project, I hope to:
- Show you how to structure a Swift website elegantly.
- Inspire you to try it for yourself.
- Get feedback to make the ecosystem even better.
- Clone the repo.
- Copy the
.env.example
file and rename it.env.development
. - Start a postgres server. Adjust the
DATABASE_URL
variable in your.env.development
to whatever you name your server. If your server is calledexample-com-server-development
, onport 5432
, onlocalhost
, with a database user namedadmin
then the correct syntax ispostgres://admin:@localhost:5432/example-com-server-development
. - If you want to see the Account system in action, you will need to setup Mailgun. Adjust the
MAILGUN_PRIVATE_API_KEY
andMAILGUN_DOMAIN
variables with your specific details. - Go to Xcode and run the
Server
executable target.
- swift-css: A Swift DSL for type-safe CSS.
- swift-html: A Swift DSL for type-safe HTML & CSS, integrating swift-css and pointfree-html.
- swift-web: Foundational tools for web development in Swift.
- coenttb-html: Builds on swift-html, and adds functionality for HTML, Markdown, Email, and printing HTML to PDF.
- coenttb-web: Builds on swift-web, and adds functionality for web development.
- coenttb-server: Build fast, modern, and safe servers that are a joy to write.
coenttb-server
builds on coenttb-web, and adds functionality for server development. - coenttb-vapor:
coenttb-server-vapor
builds on coenttb-server, and adds functionality and integrations with Vapor and Fluent. - coenttb-com-server: The backend server for coenttb.com, written entirely in Swift and powered by coenttb-server-vapor.
- coenttb/pointfree-html: A Swift DSL for type-safe HTML, forked from pointfreeco/swift-html and updated to the version on pointfreeco/pointfreeco.
- coenttb/pointfree-web: Foundational tools for web development in Swift, forked from pointfreeco/swift-web.
- coenttb/pointfree-server: Foundational tools for server development in Swift, forked from pointfreeco/swift-web.
- swift-languages: A cross-platform translation library written in Swift.
If you’re working on your own Swift web project, feel free to learn, fork, and contribute.
Got thoughts? Found something you love? Something you hate? Let me know! Your feedback helps make this project better for everyone. Open an issue or start a discussion—I’m all ears.
The paid content of coenttb.com, including text, images, and other media, is all rights reserved. Unauthorized use, reproduction, or distribution of this content is prohibited without prior permission.
All other content (such as blog posts, documentation, and media not part of paid content) is licensed under CC BY-NC-SA 4.0 LICENSE.
This project's source code, excluding content of coenttb.com, is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). You are free to use, modify, and distribute it under the terms of the AGPL-3.0. For full details, please refer to the LICENSE file.
A Commercial License is available for organizations or individuals who wish to use this project without adhering to the terms of the AGPL-3.0. This option is ideal for:
- Using the codebase in proprietary software
- Incorporating it into SaaS products
- Avoiding the source code sharing requirements of AGPL-3.0
For inquiries about commercial licensing, please contact info@coenttb.com.