#1 2014-11-20 19:02:49

restneophyte
Member
Registered: 2014-11-18
Posts: 26

Question about RESTful ORM Server

The example entiled 'Simple RESTful ORM Server' included with 'mORMot' is a console application.

Would a 'real' ReSTful ORM server be a service instead (on a Windows server)?

Offline

#2 2014-11-20 20:35:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Question about RESTful ORM Server

Yes of course.

Please check sample "10 - Background Http service".

Offline

#3 2014-11-20 20:40:15

Leander007
Member
From: Slovenia
Registered: 2011-04-29
Posts: 113

Re: Question about RESTful ORM Server

No real need for that for examples, for real applications you are just few steps away from real Windows Service.
The most simplistic approach to show and test some functionality is to do console applications, which do not have GUI overhead.
Console application is the most "natural" way to code and test prototype which could be later "wrapped as real" Windows Service.
You can even leave them as that and run them from Windows scheduler...

Last edited by Leander007 (2014-11-20 20:45:39)


"Uncertainty in science: There no doubt exist natural laws, but once this fine reason of ours was corrupted, it corrupted everything.", Blaise Pascal

Offline

#4 2014-11-20 21:00:17

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Question about RESTful ORM Server

@Leander007
Yes, console + verbose log are the "natural" way to test server side.
But of course, it may be quite a shift / switch from RAD UI background.

First let it work as console.
Then publish it as service.
Here are the golden rules. smile

Offline

#5 2014-11-21 18:13:22

restneophyte
Member
Registered: 2014-11-18
Posts: 26

Re: Question about RESTful ORM Server

Thanks to both of you for your clear and consice answer. It is conforting to know that I am following the right path.

Offline

Board footer

Powered by FluxBB