Code Monkey home page Code Monkey logo

raphters's Introduction

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.

raphters's People

Contributors

alderz avatar danielwaterworth avatar jturner avatar xzhaoyang 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  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  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  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  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  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  avatar  avatar  avatar  avatar  avatar

raphters's Issues

Can't run as apache fcgi

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!

Mac OS compilation issue

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

Compiled, but programs do nothing and quit immediately

I can compile the magical Raphters but when the programs are run they output nothing.

I've built it using cmake and then make, as told in the readme. so then i have the simple example object.

$ ./simple
...nothing happens

please help!

Screen Shot 2012-12-08 at 8.07.12 PM.png

raphters.h: No such file or directory

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.

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.