Building a Vapor API with a matching iOS app - Swift on Sundays March 10th 2019

  Переглядів 55,230

Paul Hudson

Paul Hudson

5 років тому

In this episode we build a Vapor server-side Swift back-end that can serve up HTML or JSON, then write an iOS app to talk to that back-end.
You can download the finished project for this and all Swift in Sundays streams: github.com/twostraws/SwiftOnS...

КОМЕНТАРІ: 62
@twostraws
@twostraws 4 роки тому
Watch next: Building a sleep app with Core ML and Create ML - ukposts.info/have/v-deo/sGmQdn1pqG2Juqs.html Questions? Comments? Tweet me @twostraws.
@ioscaleb
@ioscaleb 2 місяці тому
Another hugely informative HWS video - thanks for this.
@dhavalnena7386
@dhavalnena7386 4 роки тому
YOU'RE A GREAT TEACHER PAUL! YOU MAKE LEARNING SO SO SIMPLE WITH DETAILED EXPLANATION, THANK YOU SO MUCH !!
@chrispy104k
@chrispy104k 2 роки тому
I remember watching this mid morning live on the day..... like 2:30am. I'm pretty sure that my head was full of broken biscuits after a while. Having come back to it a couple of years later with a LOT more experience, it makes way more sense. Great stuff Paul.
@zackgib
@zackgib 5 років тому
Paul, this content is so good! I’m stoked to start writing Swift for both front-end and back-end. Seems like such a nice developer experience.
@twostraws
@twostraws 5 років тому
Fantastic! It's great fun to do iOS and Vapor together - highly recommended 👍
@smongo1234
@smongo1234 5 років тому
Great session! You've convinced me in buying your book. I'll be coming for that sticker during iOSCon 😬
@yoellev5191
@yoellev5191 5 років тому
Great video Paul👏🏼 Thank you
@maheswarancm
@maheswarancm 4 роки тому
Great Tutorial, I am a beginner I can easily understand vapor with the help of your thoughts. It is giving some confidence to work further. thanks
@kokoratim5250
@kokoratim5250 4 роки тому
Thanks,expect more videos about vapor,it is great!
@ryangaudet357
@ryangaudet357 8 місяців тому
What a fantastic tutorial. I'm just starting with vapor and I love the pace of this tutorial, the explanations and what I consider real world examples.
@enriqueflorencio9520
@enriqueflorencio9520 5 років тому
This is freaking amazing. Thank you!
@philippbraun9306
@philippbraun9306 2 роки тому
Hello Paul, thank you for your very good content. You have the exact right way to explain topics in the way people like me understand this. Keep going :-)
@rasheedm2084
@rasheedm2084 3 роки тому
Great stuff as always Paul
@vadimomelchenko2609
@vadimomelchenko2609 3 роки тому
Paul Hudson was right. Only one year has passed and now Vapor 4 is already in use. I had to spend enough time to write this project using the latest changes in Vapor. This is my first project thanks to which I got acquainted with the server side in the Swift language. Thanks for this video and such an interesting example. It was exciting !!!
@best26355
@best26355 5 років тому
Great as always 👏🏼
@AGiven10
@AGiven10 5 років тому
Great video Paul!
@madprolp
@madprolp 3 роки тому
Thank you very much Paul.
@dhavalnena7386
@dhavalnena7386 4 роки тому
1:07:27 Future vs Future, this one really helped me!
@bart2865
@bart2865 2 роки тому
Thank you Paul I've always got lesson from you even if backend side Although I know NodeJS little but I'll go with Swift
@GabrielDucharme
@GabrielDucharme 5 років тому
This is great. It was easy to follow and can stress enough how much I learned!
@twostraws
@twostraws 5 років тому
Glad to hear it!
@ChrisSchepman
@ChrisSchepman 4 роки тому
tremendously useful thank you!
@MrMa77y
@MrMa77y 5 років тому
I had an issue when trying to create a new project from the template. However, I changed from --template to --repo and it worked fine this is possibly a change in the new version otherwise I am not so sure and thanks for the tutorial I have been meaning to try out Vapor!
@jaymartinez311
@jaymartinez311 4 роки тому
I was hoping on vapor with swift but what you said at the end about you not making frameworks for vapor it’s not there yet, helped me to give vapor and ktor to get there.
@maximkrouk1697
@maximkrouk1697 5 років тому
Very informative and useful, thank you, Paul ^^
@maximkrouk1697
@maximkrouk1697 5 років тому
What have you done/read to understand vapor so deeply?) Is it just a documentation?
@dhavalnena7386
@dhavalnena7386 4 роки тому
1:08:05 learned flatmap so clearly here!
@zurvey
@zurvey Рік тому
This was super interesting! Have you considered doing an updated version of this for 2023?
@RyuuzakiJulio
@RyuuzakiJulio 3 роки тому
Absolute gem video in all UKposts. Wish you hit OAuth too. Thank you so much for all your mentoring.
@minon250
@minon250 4 роки тому
Amazing Tutorial
@camerondunn8020
@camerondunn8020 3 роки тому
This is great!
@marcaupont9145
@marcaupont9145 5 років тому
Love it!!!!!!!!!
@tonynguyendtn1984
@tonynguyendtn1984 5 років тому
Hi Paul, bought your Hacking with Swift book a few years back - it's pretty awesome, so thanks for the content. Question for your: is Vapor the right place to start for back end development? Should one start with a more established framework like NodeJS/Ruby on Rails and move on to Vapor once one has better basic grasp of backend concepts?
@ahsanmughal10
@ahsanmughal10 5 років тому
Hello Paul, Great content.Really Interesting stuff. I just wanted to ask a basic question;I’m doing a project in which I have to store data on server so each time app runs data will be fetched from database (Database on Server) and not from a local DB. Can I achieve that goal the way you did in this tutorial? I mean If I deploy this ok Vapor Cloud then Can I fetch data from server everytime app runs ?
@danieldonaldson8634
@danieldonaldson8634 3 роки тому
this is great, really great. but it no longer works fir 4.0. Any chance of an update?
@jlambert12013
@jlambert12013 9 місяців тому
Starts @ 4:10
@MacEns
@MacEns 2 роки тому
Hey Paul, Have you ever thought about doing an update to this in Vapor 4?
@ahsanmughal10
@ahsanmughal10 5 років тому
Referring to my last comment, By watching video upto 1:25:00 I got my answer. But I have to deploy that vapor app to work that way I’m wanting? Right? Paul Sir?
@williamsquires3070
@williamsquires3070 5 років тому
What keystroke are you using the make the text bigger in the Xcode editor?
@jmcdowall
@jmcdowall 5 років тому
Command +
@piersebdon827
@piersebdon827 5 років тому
Hey Paul, great video. Really enjoyed the Vapor part. Why did you make Cupcake a struct and not a class in Vapor?
@Redheadtama1
@Redheadtama1 5 років тому
For one, Cupcake did not need to make use of inheritance or any other class-specific features. For a data structure to represent a database table, a struct does the job perfectly well.
@piersebdon827
@piersebdon827 5 років тому
Passing around a class is far quicker then a struct on Vapor@@Redheadtama1
@JKKross
@JKKross 5 років тому
EDIT: it's okay now 😂 Paul provides explanation for why that happened, for anyone wondering 😉 Unfortunately the video starts in the middle of a sentence - was there anything important at the beginning? 🙂 Also: thanks a lot, Paul! I've been interested in server-side programming for a long time, this seems like a nice introduction! 😎👌🏽
@twostraws
@twostraws 5 років тому
JK Kross Give it time! This was a long stream, so it takes UKposts a little longer to process the whole thing.
@JKKross
@JKKross 5 років тому
@@twostraws Oh! Thanks for your quick response! 😎 Yeah, that makes sense... but I had no idea they'd cut the beginning of it 😀 Once again - thank you so much for everything you do! I use your articles almost every day - they often provide me with the "missing pieces" of Apple's official documentation 😀 Keep up your awesome work! 👍🏻 Cheers from Czech Republic! 🍻
@vivek-om2bi
@vivek-om2bi 3 роки тому
how I add css file?
@NamNguyen-yb6lz
@NamNguyen-yb6lz 3 роки тому
Hi I am planning to create 4 apps to manage the flow of clients in a particular salon: - one for clients to order the services, it will send orders to receptionist app - one for receptionist to sign in clients services order, it will send order services to manager app - one for manager to appoint technicians to do clients services . And it will send order to technician app. - one for technicians to show the services so they know what to do. It will send complete services back to receptionist app to help checkout Can you tell me where do I start with this project?
@sushant346
@sushant346 5 років тому
Hello Paul, Awesome video. Just one question, so I was hoping to test my app using vapor. Is it a good idea to do that ? Instead of using Cucumber, CTest etc frameworks, can this help ?
@blazefrostrider
@blazefrostrider 5 років тому
More Vapor tutorials please !
@twostraws
@twostraws 5 років тому
You know I have a whole book on Vapor, right? 🙂
@mihaelisaev
@mihaelisaev 5 років тому
If you want to easy decode/encode API requests on iOS side I'd suggest to take a look at CodyFire lib github.com/MihaelIsaev/CodyFire It uses Codables for everything and it's pretty easy to use. It was inspired by Vapor. P.S. Feel free to ask me any questions about that lib in Discord @iMike#3049
@vivek-om2bi
@vivek-om2bi 3 роки тому
Error (1): help me 'cupcakecorner' /Users/User1/Downloads/cupcakecorner: error: Product 'leaf' not found. It is required by target 'App'. warning: dependency 'Leaf' is not used by any target
@vivek-om2bi
@vivek-om2bi 3 роки тому
@UCVjMWiBAXnIMqdfrwaJbxKw yes bro in this template no leaf folder leaf is where the styles come html, css,images that's why we getting error check other channels
@paulfox4636
@paulfox4636 3 роки тому
why on earth would you not edit out that first (nearly) 4 minutes??
@karrarabdali5235
@karrarabdali5235 4 роки тому
If you are getting error while (vapor build) then I found the solution in this link: forums.raywenderlich.com/t/error-building-vapor-after-appstore-updates/43498 Enjoy guys :) and thanks Paul
@alexpascal5403
@alexpascal5403 Рік тому
Qumming from spring boot and ruby on railz. And after seeing speed of deployment and server side processes. I must say apple farted out, yet another great tool. I sniff oncumming updates will make make it surpass .JS in ubiquity. Lulz. JayKay.
Swift 5.9 Released | Prime Reacts
14:36
ThePrimeTime
Переглядів 58 тис.
SwiftUI API / JSON Tutorial with Async Await Example
9:52
Logan Koshenka
Переглядів 23 тис.
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Переглядів 20 млн
0% Respect Moments 😥
00:27
LE FOOT EN VIDÉO
Переглядів 33 млн
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Lex Clips
Переглядів 146 тис.
Getting Started with Vapor 4 Lesson 1
14:42
CodeWithChris
Переглядів 27 тис.
NixOS: Everything Everywhere All At Once
15:10
No Boilerplate
Переглядів 237 тис.
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Переглядів 27 тис.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Переглядів 511 тис.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Переглядів 357 тис.
How to Make Vapor Fly | Deploying Vapor on Fly.io | Server-Side Swift 2022
19:18
Big Tech AI Is A Lie
16:56
Tina Huang
Переглядів 56 тис.
iPhone 15 Precision Finding | Find Your Friends | Apple
2:52
I shouldn’t have kept the $1,000,000 computer
28:05
Linus Tech Tips
Переглядів 524 тис.
Я Создал Новый Айфон!
0:59
FLV
Переглядів 2 млн
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53
Ремонтяш
Переглядів 378 тис.
Samsung UE40D5520RU перезагружается, замена nand памяти
0:46
Слава 100пудово!
Переглядів 1,9 млн