Questions tagged [chicagoboss]

Chicago Boss is a server framework inspired by Rails and written in Erlang.

Chicago Boss takes advantage of functional programming and under-the-hood compiler magic to provide clean, understandable controller logic, Django-style templates, and an ORM based on Erlang's parameterized modules. The best part is that the network I/O is 100% asynchronous so you can seamlessly integrate Comet endpoints into your app, and you never have to worry about a slow database query dragging down unrelated requests.

84 questions
0
votes
1 answer

Chicago_boss and redis config

I am looking to configure a chicago boss application for redis. I am using the eredis gem (https://github.com/wooga/eredis). Is there a way to do this from within my boss.config?
BC00
  • 1,589
  • 3
  • 29
  • 47
0
votes
0 answers

Erlang Pub/Sub using Redis and websockets

My goal is to create an application that I can use to manage pub/sub for various clients. The application should be able to receive new topics via an API and then accept subscribers via a websocket connection. I have it working, but am aware the…
BC00
  • 1,589
  • 3
  • 29
  • 47
0
votes
1 answer

Add Kinetic to ChicagoBoss App

I am looking to add Kinetic to my chicago boss app, I have added the kinetic library to the deps directory within my chicago boss app. When I run the erlang shell from within the kinetic directory I have a development.config in the root of the…
BC00
  • 1,589
  • 3
  • 29
  • 47
0
votes
1 answer

json encoding in Chicago Boss tutorial doesn't work

The Chicago Boss tutorial http://www.chicagoboss.org/tutorial.pdf gives an example of a BossRecord automatically being converted to JSON in a controller response to a GET like this: pull('GET', [LastTimestamp]) -> {ok, Timestamp, Greetings} =…
Thrill Science
  • 408
  • 4
  • 14
0
votes
1 answer

Error Returning boss_db data via websocket in chicago boss

I am trying to return data I get using boss_db over a websocket connection. In this example I want to return the questions I fetch, you can see the logs print out the question, however there is some error which is causing terminated with reason: bad…
BC00
  • 1,589
  • 3
  • 29
  • 47
0
votes
1 answer

Chicago Boss Saving Bson Object into mongoDB

I am trying to add an bson object to a field in my mongodb data base using bc Model -module(clientList, [Id, Listname, Email, Datablock]). -compile(export_all). Code ClientList = clientList:new(id,…
jazzjazzy
  • 412
  • 3
  • 20
0
votes
1 answer

Chicago Boss boss_db:find on mongodb

I am trying to understand the boss_db module to access the mongodb I have setup in Chicago boss I found an example to access that data using boss_db from Here example: Puppy = boss_db:find("puppy-1"), io:format("Puppy's name: ~p~n",…
jazzjazzy
  • 412
  • 3
  • 20
0
votes
2 answers

Erlang Process Dictionary Error

I'm connecting a to an Extrenal Server. After going through proper authorization process I get the reponse JSON object. I'm now trying to display this JSON in view. Here what I have done so far. My first Action (which is called from Javascript that…
raich
  • 127
  • 1
  • 8
0
votes
1 answer

How to decipher ChicagoBoss Post param

I'm a newbie in ChicagoBoss web framework. I have a server which receives a POST request from another server where POST params is of the form: <<"clientId=STRING_FOR_CLIENT_ID&userId=STRING_FOR_USER_ID&sessionToken=STRING_FOR_SESSION_TOKEN">> All I…
raich
  • 127
  • 1
  • 8
0
votes
2 answers

currency localization in erlang?

I have an amount like 10 digits "1234567328.899" I want to show as currency with commas in it like this:. "$1,234,567,328.899". I had written a standalone module to do that, it was working partition_float(N,P,FP,L) -> F =…
Laxmikant Ratnaparkhi
  • 4,745
  • 5
  • 33
  • 49
0
votes
1 answer

Is there any Eclipse/Aptana Studio plugin for ChicagoBoss?

Hi I'm a newbie chicago boss developer, Have switched from Django. Can one tell me if there is a ChicagoBoss plugin in Eclipse or in Aptana? That's the only editor I like for development. I have already installed erlang plugin.
Laxmikant Ratnaparkhi
  • 4,745
  • 5
  • 33
  • 49
0
votes
1 answer

ChicagoBoss render specific fields

I have this code: get_users('GET', []) -> Users = boss_db:find(consumer, []), {json, [{users, Users}]}. But my users contains for example password field which I don't want to render. How to exclude some fields from rendring?
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
2 answers

How to read from post param?

I need to parse text file. This file is in post param. I have code like this: upload_file('POST', []) -> File = Req:post_param("file"), What should I do next? How to parse it?
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
2 answers

string:str for string from database

I have model with some fields. I want to get string field from mongodb and get substring. I'm trying: My get_items code. Here is important just one line with filter. get_items('GET', []) -> Items = boss_db:find(item, []), S =…
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
1 answer

Render json with array of objects

I have code like this: index('GET', []) -> Users = boss_db:find(consumer, []), {json, [{"users", Users}]}. And I have an error: {function_clause, [{boss_json,json_data1, …
cnaize
  • 3,139
  • 5
  • 27
  • 45