json - Scala Play apps without a web UI? -


I have recently been writing scala apps, and for those who need a web UI, play frameworks are great I am struggling to define a sensible library stack for the back-end app without the UI, Play provides two very useful components for the UI-less app: via 'SBT Stage' Good JSON support and convenient app packaging. But it also brings very unused stuff, I want to stop these back-end apps.

I know that JSON support has gone essentially in the Scala standard library, and options like Jackson / Jarkson or Argonaut are present, but I equally integrate into all applications rather than dealing with many libraries. I'm hoping to use the approach for purposes. I know that other packaging plugins exist for SBT, but this is the only problem.

Is it meant to use play for app without a web UI? Are people actually doing this out there? If so, how do I configure play to work like this? (For example, do not start HTTP listeners: 9000).

Many thanks in advance.

Sure, play spray Good spray uses less resources but the play is not particularly large.

It comes down to the preference if you prefer to write programs in a play style (declarative, fast dev chakra) and prefer to use spray (aka HTTP), then use play If you want more control and want to pass your code around the artists (message passing, supervision).

Both play and spray have their own JSON libraries which can be used using a standalone, but unfortunately the libraries do not match each other between each other between each other. Eat.

I do not have your question about packaging plugins, but uses play.

In order to configure an HTTP port in use, use -Dhttp.port = 1234 . See all details.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -