danielwaterworth / raphters Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] A web framework for C.
License: GNU Lesser General Public License v3.0
[DEPRECATED] A web framework for C.
License: GNU Lesser General Public License v3.0
Raphters is a web framework for C based on the rapht architectural pattern (see RAPHT). FAQ === Q: Why would you want to build a web application in C? Didn't that idea die out with CGI? A: Good question. C is fast and fun, when you use well-tested code it can be secure too. It also has a low memory foot-print. The aim of the project is that all of the usual functionality that you have in other frameworks (cookie handling, session management, templating etc) will be implemented via loosly coupled components with clean APIs. Build Instructions ================== From within the project directory: $ mkdir build $ cd build $ cmake ../ $ make Deployment ========== The examples are deployable via fastcgi.
A slightly more complicated example than hello world would go a really long way :)
On windows this depends on regex.h and stdbool.h which cmake doesn't find. Any suggestions?
Is this project dead now?
Hi,
Where can i find someone to help us make Raphters work inside Gwan ?
Thanks
yardennis at gmail
It's possible I'm just doing something wrong, but I have an apache server that can run the test script at http://snippets.dzone.com/posts/show/288 but when I try to run simple (renamed to simple.fcgi) I get a 500 error. The apache logs show:
[Mon Dec 12 08:10:04 2011] [warn] [client 127.0.0.1] mod_fcgid: error reading data, FastCGI server closed connection
[Mon Dec 12 08:10:04 2011] [error] [client 127.0.0.1] Premature end of script headers: simple.fcgi
[Mon Dec 12 08:10:04 2011] [debug] mod_deflate.c(615): [client 127.0.0.1] Zlib: Compressed 615 to 378 : URL /simple.fcgi
If I run simple directly I get this:
> ./simple.fcgi
content-type: text/html
error: NULL method_str
Apache config is up at https://gist.github.com/1467099
Thanks for your help, look forward to trying out Raphters!
I tried to compile the project using the xcode gcc and got the following error:
gcc simple.c -o test
Undefined symbols:
"_response_empty", referenced from:
_simple_func in cc6LuPel.o
_default_handler_func in cc6LuPel.o
"_response_add_header", referenced from:
_simple_func in cc6LuPel.o
_default_handler_func in cc6LuPel.o
"_response_send", referenced from:
_simple_func in cc6LuPel.o
_default_handler_func in cc6LuPel.o
"_add_handler", referenced from:
_main in cc6LuPel.o
_main in cc6LuPel.o
"_response_write", referenced from:
_simple_func in cc6LuPel.o
_default_handler_func in cc6LuPel.o
"_serve_forever", referenced from:
_main in cc6LuPel.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
If so, why?
After building the project (i'm running on Mac by the way) with cmake, whenever I try to include the code it says there is no such header in my include directory and it's right. I checked my /usr/include and /usr/local/include and there is no sight of any raphter files. I'm excited to use this library, but I just can't get around this bug. If you could help with this issue you'd be a life saver.
When I run ./simle
I got nothing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.