Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Swift vapor inside a macOS app

Tags:

macos

swift

vapor

I am not quite sure if this work - so that why I am asking this question:

I have a macOS app based on Swift that is used as a specialized CRM application. My client wants to use the app on different machines but the data should be fetched from one Mac. My consideration was to use one app as "server" and the other apps as clients connecting to this server.

  • Can I use vapor inside an app for macOS for such a scenario?
  • Can it be used as a library?
  • I have seen that vapor comes with its own stack of environment - is it compatible to be used inside a macOS app?

Cheers

Sas

like image 905
Oliver Koehler Avatar asked Jan 21 '26 05:01

Oliver Koehler


1 Answers

Yes. Vapor runs correctly on macOS. There is nothing to stop you 'embedding' Vapor inside another Mac app.

Possible points of concern:

  • you will need to use the Swift package manager to install Vapor and its packages.

  • there are other, existing, light weight HTTP servers such as Swifter that may better fit your needs.

But yes, you can use Vapor if you want.

like image 149
tobygriffin Avatar answered Jan 23 '26 21:01

tobygriffin