Oliver Koehler
Oliver Koehler

Reputation: 731

Use Swift vapor inside a macOS app

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.

Cheers

Sas

Upvotes: 3

Views: 1444

Answers (1)

tobygriffin
tobygriffin

Reputation: 5421

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.

Upvotes: 2

Related Questions