C++ web service [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a C++ program, and I want to make it as a web service listening to http request. I am a newbie to web development. Could some one give me a guild to tools/library/APIs that can help me build it. I know Java program usually restlet. What is the equivalent of restlet for C++?

I would recommend C++ web toolkit
http://www.webtoolkit.eu/wt
or
cppcms.sourceforge.net

The old, classic way to make existing C/C++ executable available on the web is through CGI. A web server that supports CGI can be configured to interpret an URL as a reference to a CGI script that can be directly your executable or a simple wrapper around it. The web for fields are provided as standard input and the program's output becomes the server response.

I am working on something similar in Python and I am also newcomer on this field. You might be interested in sockets, see: http://goo.gl/r6X4u, http://goo.gl/enffd

The QxtWeb module provides tools for creating web services using Qt.
Also, if you are using Visual C++ then here is an introduction how to create web services.

Related

REST API + Webserver on embedded SoC running Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm developing an embedded platform and need to provide mechanisms to control and maintain the platform (file upload/download/delete and triggering various actions).
I need to be able to use those functions from a program running on a host machine and also via a simple website hosted on the platform itself.
I've never done this before and am wondering the best way to proceed, so looking for guidance as to what framework and system structure to use.
The platform is running Linux and all other services running on it are written in C/C++, so sticking to C++ seems like a good idea as it simplifies maintenance (no need to learn a new language, anyone in the team can use C++).
I do not want to consume too much CPU/RAM running frameworks, so a compiled language seems appropriate. I do not want to run Java for example.
I'm thinking to use lighttpd to host the website and Microsoft's cpprestsdk to implement the microservice in C++.
The benefit of cpprestsdk is that it's a C++ framework, implementing an HTTP server and with support for JSON. So it looks fairly straight-forward to use it to implement the micro-service.
The drawback of using lighttpd and cpprestsdk is that I have two HTTP servers running on the machine, which seems like a waste of resources.
Would I be better off using CGI with lighttpd to implement my micro-service?

How to setup a VPS with Django, Nginx, Gunicorn, Postgres and then properly deploy a Django application to it? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Perhaps there is a definitive tutorial or blog describing what I'm looking for, but I haven't seen it. And being new to Django, I'm really looking for a proper way to both set up a VPS and deploy the project to it ... the latter in a repeatable/sensible way as the project evolves.
Here is what my project looks like:
Using Django 1.6.2 + Postgres
Project structure is essentially what is described here
Static assets delivered locally in development need to be uploaded/delivered from S3 in production
My VPS is a basic Linode running Ubuntu 13.10
I would say Test-Driven Web Development with Python is a good one. It's mostly focused on TDD, but it's really good at covering the basics of Django as well. Chapter 8 talks about deployment and is pretty thorough.
EDIT:
Saw that that book doesn't use S3 for static files, so I'd recommend this blog post for dealing with that.
This article: How To Install and Configure Django with Postgres, Nginx, and Gunicorn has some great instruction on getting the VPS setup, minus the S3 assets.
For repeatable deployment do some research on fabric.

Which secure cloud storage service for developers? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want to create a new service and I need to find a secure cloud storage with client-side encryption. The service needs to be accessible with an API or a SDK or something like that.
I made some researches and I found Mega. Do you know another?
Is there an opensource solution to construct this kind of cloud?
Thanks in advance for your answers.
All cloud have data storage like.
Amazon :- SQS,S3,DynamoDB,RDS etc.
Azure :- Blob Storage, DBMS , Table storage etc.
all these storage can be access by API.
you can implement data encryption like Hashing, Symmetric, Asymmetric at client side before storing the data into cloud storage.
I work for Adrenaline Mobility. We're a new entry into this area, but that's exactly what we do. (Sorry for the promotion, but it's quite relevant). We provide secure storage (client side encryption), credential management (login / signup / password reset), messaging (end-to-end encrypted messages between users, devices, etc). Our architecture is designed so that you don't need to trust us, or our storage backend.
Feel free to email me at murph#adrenalinemobility.com if you want to discuss what we can do for you. We're pretty flexible and willing to work with you.
--Murph

C++ Web Framework w/ Embedded Server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been looking for a C++ Web Framework that would allow me to build a GUI Control Panel directly into a .dll plugin. In the past I have used Nancy Framework for .NET Projects which was exceptional (was my first time with this type of framework). I have found some good candidates based off of other Stack Overflow questions, however I am having trouble figuring out which, if any, have embedded web servers.
C++ Server Pages - This Looked Exceptional, but runs off of IIS or Apache.
CppCMS - Constantly recommended, but does it have an embedded server?
TreeFrog - Also recommended, but seems to have very broken documentation?
Which one of these would be recommended for a completely embedded solution? Ease of use would also be a huge plus, but I am willing to take the time to get it working provided it does what is needed. Thanks!
cppcms has an embedded server and is very well supported in embedded solutions. The documentation is complete and the support is very good, so perchance the documentation is not enough, the developer is certain to help you through your problems.
Don't forget about Wt. It also comes with a built-in web server.
Both CppCMS and TreeFrog have a built-in web server.
Did you have a look at ffead-cpp, it has an embedded web server, apache module, host of features and can run on Windows-Cygwin/BSD/Linux/Solaris

Can you recommend some free web services to play with? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am studying usage of web services nowadays.
Can anyone recommend some free web services I can use to practice?
ProgrammableWeb has a whole list of api's / web services you can play with.
if you want to play with some online web services, visit the following site
wcfspro.com/home/wcfservices
those services are for testing