1. 程式人生 > >Want to use just one programming language? Full-stack Swift may be the answer

Want to use just one programming language? Full-stack Swift may be the answer

Are you a developer who’s familiar with all layers in software development? Then consider yourself a full-stack developer! If you’re like me, you started your career by learning all aspects of software development. And you realized that it takes a lot of work and time to develop an app that has both the front end and back end. I recently worked with mobile apps and I had a lot of fun with building and deploying them on my phone. One problem that I faced initially was switching from coding in Swift for an iOS app, and then back to coding in JavaScript for the app’s Node.js back end. It was confusing at times, switching from one programming language to another. For example, I would get used to Swift’s syntax for if-else

statements or variable declarations where it’s different from JavaScript. It was confusing for me to work in multiple languages, especially different frameworks from different languages. I thought it would be more convenient to work with just one language on both contexts—and that’s where full-stack Swift came in handy.

Swift on the server with Kitura

Kitura is one of the server-side Swift web frameworks out there. I’ve found that working with Swift in both iOS app development and back-end development is making development easier all around. I only have to focus on the logic of the software and it ends up allowing me to code faster. Kitura also has a lot of supporting packages to make it easier for developers to build cloud-native applications. One package that really stood out to me during this process was

Swift-Kuery-ORM. It’s an Object Relational Mapping library that’s built for Swift. The library makes it easy to connect your Kitura server with a SQL database. It uses Codables for the data models that make your RESTful APIs with Kitura simpler. This also allowed me to use the same Codables in both my iOS app and its server.

Try it now with Kitura on Kubernetes!

Kubernetes is already one of the popular container-orchestration platforms for developers who work with containers. In this new pattern, “Kitura on Kubernetes,” I walk you through building a server-side Swift with Kitura to create a step-tracking app that rewards users with “fitcoins.” This pattern uses three simple Kitura microservices that are connected to a PostgreSQL database for its persistence storage. This helps developers expose their back end for their iOS apps to communicate with. You also learn how to expose the back end in Kubernetes to a public domain with a TLS certificate for HTTPS.

Check out the GitHub repo and contribute

Kitura is open source and available on GitHub at IBM-Swift/Kitura. And all of the packages and tools can also be found on that organization. If you want to improve something or give feedback, feel free to open issues and/or pull requests!

相關推薦

Want to use just one programming language? Full-stack Swift may be the answer

Are you a developer who’s familiar with all layers in software development? Then consider yourself a full-stack developer! If you’re like me, you star

Ask HN: What would you expect to see in a programming language website?

I am creating a website template for a programming language.What features or characteristics do you expect to see in a programming language site? Are there

So you want to use GoGo Protobuf

Introduction In the Go protobuf ecosystem there are two major implementations to choose from. There’s the official golang/protobuf, which uses

The World Bank and tech companies want to use AI to predict famine

At this week's United Nations General Assembly, the World Bank, the United Nations, and the Red Cross teamed up with tech giants Amazon, Microsoft, and Goo

"Loading a plug-in failed The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstal

The Unarchiver 雖好,但存在問題比我們在mac上zip打包一個軟體xcode, 然後copy to another mac, 這時用The Unarchiver解壓縮出來的xcode包不能執行, 好像是裡面的檔案資訊結構被破壞,會出現而用archive utility 解壓就能正常執行。  通

Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a net

AndroidStudio 3.2.1 遇到下面這個錯誤 解決辦法: distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip https修改成http

32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following

environ 解決 一行 body blog _for side bit allow ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do

Umbraco項目發布錯誤 --More than one type want to be a model for content type authorize

bin 後臺 dir 出現 event bsp div eve 項目發布 在開發項目時,解決方案下面包括三個項目 MyUmbracoProject MyUmbracoProject.Core MyUmbracoProject.FrontEnd 第一個項目MyU

2018.09.22 上海大學技術分享 - An Introduction To Go Programming Language

針對 Language 社區 相對 基礎語法 ref 同學 master tree 老實說筆者學習 Go 的時間並不長,積澱也不深厚,這次因緣巧合,同組的同事以前是上海大學的開源社區推動者之一,同時我們也抱著部分宣傳公司和技術分享的意圖,更進一步的,也是對所學做一個總結,所

What is One Hot Encoding? Why And When do you have to use it?

  So, you’re playing with ML models and you encounter this “One hot encoding” term all over the place. You see the sklearn documentatio

Just want to say THANK YOU!! πŸ’–πŸ˜Š – Ping Wong ηŽ‹ε˜‰ε± – Medium

Just want to say THANK YOU!!Β πŸ’–πŸ˜ŠI did not win the HKIRC/Β .hk election and stepped down as Director of HKIRC last Thu. The past 3 years of volunteeri

What’s the Best Programming Language to Learn?

What’s the Best Programming Language to Learn?Where should you start learning?Nowadays, there are so many programming languages available in the market, an

I just want to AC you~~~

複習C++ Prime 4th的時候,看見書上對/和%操作符有以下描述: For both division (/) and modulus(%), when both operands are positive, the result is posit

TPO-13 C2 How to use language lab

TPO-13 C2 How to use language lab 第 1 段 1.Listen to a conversation between a student and the language lab manager. 聽學生和語言實驗室經理之間的談話。 第 2 段 1.Hi, I'm not s

【changyanmanman的專欄】I just want to know more about the world.

個人資訊 姓名:lyg ------------------------------ 地點:上海----------------------------- 職位:ebs dba ----------------------- email:[email prot

Where do you want to jmp today ? In one of my previous posts (part 1 of writing stack based buffer

In the first 2 parts of the exploit writing tutorial series, I have discussed how a classic stack buffer overflow works and how you can b

The best way to use Xtool X100 PAD2 for FEM programming

pla date aci vdi upload pen eps step min Look here: XTOOL X100 PAD2 is new FEM programming. Possible to use Xtool X100 PAD2 for FEM progr

studio2.3.1中please select at least one of the signature versions to use及提示未安裝

android studio2.3.1版本打包簽名時彈出提示please select at least one of the signature versions to use解決方式 需要勾選 這種方式的簽名(只勾選v2),僅支援7.0及以上版本,不能在7.0以下版本

The Swift Programming Language》的筆記-第27頁

關鍵詞 Language b2c lang class 是個 左值 類型檢查 自己 · 第27頁 1 type safelanguage 本頁的主要內容是說swift語言是“類型檢查”的安全型編程語言。意思是賦值語句的左值和右值的類型要一致,

一群牛人翻譯:The Swift Programming Language 中文版

pan dsm 1.7 rac err star get track sans 無聊閑逛GIthub,看到一群牛人在github上創建了一個關於Switf的文檔翻譯項目 The Swift Programming Language 中文版 項目地