Simple backend webserver written in Objective-J running on Node.js

95 views
Skip to first unread message

Martin Carlberg

unread,
Apr 23, 2015, 12:05:51 PM4/23/15
to objec...@googlegroups.com
Hi!

I have written a very simple backend webserver in Objective-J that runs on Node.js. It can store json objects that can be retrieved back again.

It is started from command prompt with:
bin/objj main.j

From another command prompt you can store json object with:
curl 127.0.0.1:1337/Name/42 -d '{"name": "martin”}'

Retrieved then back with:

The url uses a pattern with entity and identifier for storage. It looks like this:
curl 127.0.0.1:1337/<entity>/<identifier>

To debug with the node-inspector and Chrome start with:
node --debug-brk bin/objj main.j

The source for the backend webserver can be found here: http://mini.carlberg.org/dev/objj-node-webserver.zip

For more information on the runtime check https://www.npmjs.com/package/objj-runtime


Happy coding,

- Martin

Ross Boucher

unread,
Apr 23, 2015, 12:22:53 PM4/23/15
to objec...@googlegroups.com
Very cool

--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
To post to this group, send email to objec...@googlegroups.com.
Visit this group at http://groups.google.com/group/objectivej.
For more options, visit https://groups.google.com/d/optout.

Kjell Nilsson

unread,
Apr 23, 2015, 3:18:49 PM4/23/15
to objec...@googlegroups.com
LEET!

—kerusan


Dogild

unread,
Apr 24, 2015, 1:04:40 AM4/24/15
to objec...@googlegroups.com
Very cool !

Aparajita Fishman

unread,
Apr 25, 2015, 6:25:34 PM4/25/15
to objec...@googlegroups.com
Awesome! You rule.
Reply all
Reply to author
Forward
0 new messages