a simple blog server application in C++, using a Json rest server

Jul 22, 2015 at 2:41 AM
I have to do a project using Json server. I have never used Json server, so need some help to get directed in a right direction. here some project description:

Use Visual Studio 2013.
You must download and install the following libraries :
“Casablanca” JSON C++ library, you must download it using nuget extension.
Web Server C++ library, download winx64 Vstudio 2013 binaries. v 3.3.3
Requirements :
You should create a simple blog server application in C++, using a Json rest server,
and a client interface, to test your blog server.
Then publish your simple blog with server webtoolkit library.
Use MS SQL Server 2012 database.
The json rest server application should run as a windows service.
  1. Install as a service.(JSON server application)
  2. Configure.
  3. Create your server win32 service (windows service with casablanca)
  4. Create the Win32 client application (native desktop win32 with casablanca).
  5. Insert a simple blog and few posts, and add some comments.
  6. Publish your blog/site in the C++ Web Server (webtoolkit), this server should get the blog data from the win32 service.
  7. Record a wink video, running your C++ json windows service, client interface, and running the
    web server.
My question is: what should i do first? How to install and configure Json server?
What type of project should i create in Visual Studio? i know well c++ and Sql as well, not sure where to begin.
Comments, suggestions,
Thanks in advance...
Jul 22, 2015 at 6:59 PM
Hi gennady46,

The C++ REST SDK is mainly targeted at connecting to REST services. In your project you could use the C++ REST SDK to connect to the service you are authoring. If you haven't done anything with the library yet I recommend you take a look at our getting started tutorial.

Jul 27, 2015 at 3:47 AM
Edited Jul 27, 2015 at 3:56 AM
Yes, thanks i did study the tutorial, however,
Json server is not given in the example,
i did create a win32 native desktop application,
installed all the C++ REST SDK's into the project, not sure if only one have to be installed?
I have noticed one of the header files have to be included
into the project like :

#include <cpprest/json.h> // JSON library
using namespace web::json;

Not sure which other files must be included.

And not sure about the syntax to a create json server and insert a blog there?

I have the entry point in my project as this one:

int APIENTRY _tWinMain(In HINSTANCE hInstance, etc....

Get back thanks in advance...