Coder Social home page Coder Social logo

webappsdk / granada Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 15.0 643 KB

No longer maintained - Granada is a structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.

License: Other

C++ 90.23% CMake 1.93% JavaScript 2.03% HTML 5.77% CSS 0.02% C 0.02%

granada's People

Contributors

alvarofcgm avatar sutr90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

granada's Issues

session-get-and-post on_initialize - uncaught exception

During on_initialize, test_controller->open().wait(), when bind to localhost:80 fails uncaught exception is thrown (for example - can be recreated when executing on non-elevated user on Windows).

This is minor, but since it is an example recommended during initial setup it might be frustrating.

Can be recreated under Windows when run with standard (non-elevated privileges).

Any process to build this.

I have failing to let cmake find boost libraries and pthread libs and headers, is this project working, does it's setup require more information. As after following standard process to setup this project, I'm failing and have lost atleat 20 hours.

Error linking sessions-get-and-post with symlink to granada samples

I followed your instructions at https://github.com/webappsdk/granada/wiki/Build-for-Linux-and-MacOS for building granada. I am using Ubuntu 16.04.1 LTS.

Where is says "...link or put these granada folders respectively in the include, the src and the samples folder of your C++ REST SDK project." I chose to create symbolic links. I commented out the samples except session-get-and-post.

Everything ran fine until linking when I received the following error.

[100%] Linking CXX executable ../../../Binaries/sessions-get-and-post
c++: error: ../../../Binaries/libcpprest.so.2.9: No such file or directory
samples/granada/sessions-get-and-post/CMakeFiles/sessions-get-and-post.dir/build.make:427: recipe for target 'Binaries/sessions-get-and-post' failed
make[2]: *** [Binaries/sessions-get-and-post] Error 1
CMakeFiles/Makefile2:1028: recipe for target 'samples/granada/sessions-get-and-post/CMakeFiles/sessions-get-and-post.dir/all' failed
make[1]: *** [samples/granada/sessions-get-and-post/CMakeFiles/sessions-get-and-post.dir/all] Error 2
Makefile:138: recipe for target 'all' failed

It works fine when I copy the samples folder instead of making a link (still using links for include and src). It looks like an issue with relative paths (../../../Binaries) not resolving properly after cd follows the symlink. Not a big issue since it is just for the samples but I thought you may want to either correct the instructions or update the build to support the symlink.

I'm not terribly comfortable modifying the cpprest project in order to integrate granada. Based on your comment regarding building for windows at the end of your last post on the issue at #1, it looks like it should be possible to build granada as an so on Linux and build the samples referencing that so. Can you explain your rationale for that choice vs. compiling granada as a separate so that relies on the cpprest so?

I recognize this is more of a discussion than an issue, but it looks like probably the best way to communicate unless you have a preferred alternative. It has the advantage (and disadvantage ;-) of being available for others to view and learn from.

Granada has not been declared

Hi,

I just finished to compile and install c++ rest sdk with granada, and i'm trying to execute and example, but the compiler always show the error "granada has not been declared". I want to ask if granada generates some library to add to the application i'm currently developing.

Thanks in advance.

corrupted data extracted from http request in OAuth2Controller::handle_post

The both oauth2-server samples are not working correctly. There is not possible to allow Message Reader or Message Editor to read, edit,... after entering user name and password. Server responds with "The resource owner or authorization server denied the request." in the Authorization Code Grant section or with "The request is missing a valid token." in the Implicit Grant section.
After some debugging I have found problem in the OAuth2Controller::handle_post method on line 181. The string returned by reference was starting with zeros, therefore I think the referenced string was already destroyed. I replaced const std::string& body with std::string body and all is working as expected.

The resource owner or authorization server denied the request.

oauth2-server

I succeed compiling all and after starting in the browser. I create a user but when I attempt to allow application, I have always this error message :
"The resource owner or authorization server denied the request."
I tested it also with redis version but still fail also !

thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.