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
1
vote
0 answers

How to connect Cassandra database with Chicago Boss Application?

My cassandra database is on a VMware server. The problem is that I don't find any database adapter which can help me in connecting my cassandra database with my chicago boss(a web framework in Erlang) application. I tried Cqerl on GitHub but I am…
Shubham Abrol
  • 613
  • 6
  • 10
1
vote
2 answers

What does these compile time warning means?

I am newbie to erlang chicagoboss. I have just created a small project in erlang, and now wanted to update CB. Since I am updating only ChicagoBoss to its latest version i.e. 0.8.14. But While compiling/ running ./rebar get-deps getting following…
trex
  • 3,848
  • 4
  • 31
  • 54
1
vote
0 answers

How to allow user to download a file in ChicagoBoss

I generate one xml and store it to some location say myproject/media/doc.xml As I'm newbie developer with erlang. What I knew is I will have to set request headers like "Content-Disposition", "attachment; filename=\"" + Filename + "\"" But I'm not…
trex
  • 3,848
  • 4
  • 31
  • 54
1
vote
1 answer

Using Chicagoboss boss_db and printing list of records

I'm trying to print a list of records from mnesia. Users = boss_db:find(users, []), lists:foreach(fun(X) -> [{_,Email,_,_,_,_,AccessToken}] = X, io:format("Email : ~w~n",[Email]), io:format("AccessToken : ~w~n",[AccessToken]), end,…
raich
  • 127
  • 1
  • 8
1
vote
1 answer

Clear Chicagoboss cache

I have been using erlang and chicagoboss since 5-6 months. I have observed that when I don't run ./rebar compile for long time then server takes too much load. requires at least 20 -25 seconds to reload any of the web page on localhost. My questions…
trex
  • 3,848
  • 4
  • 31
  • 54
1
vote
1 answer

Chicagoboss make error for lager

I am porting my web application developed in Chicagoboss from my mac to ubuntu. But when I run make on ubuntu I get the following error: ERROR: pre_compile failed while processing /home/myname/myapp_priv: {'EXIT',{undef,[{lager,start,[],[]}, …
raich
  • 127
  • 1
  • 8
1
vote
1 answer

Any phalcon vs chicagoboss benchmarks?

These frameworks are the future of speed internet. But I can't find any benchmark or feature comparison of them on google. What framework in which situation would be better for example for building highload online shop? For building stackoverflow…
d9k
  • 1,476
  • 3
  • 15
  • 28
1
vote
1 answer

See all the parameters of the request erlang/ChicagoBoss

I'm getting undefined everytime from the response for a hidden field "F_02_displayorder". I'm debugging value as in Erlang Code: error_logger:info_msg(" Value - F_02_displayorder ", [Req:post_param("F_02_displayorder")]) You would know that Air…
trex
  • 3,848
  • 4
  • 31
  • 54
1
vote
1 answer

ChicagoBoss json outputs

I have some code that get a list of file from a directory and I want to send it back as a json to the client getDir('GET', [])-> {ok,Sheets} = files(FileDir), Sheets2 = sheetJson(Sheets, ""), {json, [{sheets,…
jazzjazzy
  • 412
  • 3
  • 20
1
vote
1 answer

Validate Japanese Date in erlang

I get Japanese date (JDate) in following format, How can I validate it for month date and year. DateTuple = form_util:get_jdate_val("F_01_0070", Req), %%Get Jdate from Request This function returns JDate DateTuple in the following…
Laxmikant Ratnaparkhi
  • 4,745
  • 5
  • 33
  • 49
1
vote
2 answers

erlang file from post param

I have a problem: I need to read file from post param in ChicagoBoss. I'm trying: upload_file('POST', []) -> File = Req:post_param("file"), {ok,Data} = file:read_file(File), And have an error: {{badmatch,{error,enoent}} When I'm trying to…
cnaize
  • 3,139
  • 5
  • 27
  • 45
1
vote
1 answer

Extending erlydtl

How is it possible to extend "erlydtl"? I really like django templates, and the way the template language can be extended. For example, I like the extensions such as "sekizai". It is possible to have custom tag modules for erlydtl. But how do I add…
Yogesh Sajanikar
  • 1,086
  • 7
  • 19
1
vote
1 answer

Is there any erlang web framework which provides the same functionalities as in Dropwizard framework?

Is there any erlang web framework which provides the same functionalities as in Dropwizard framework? I am not good in erlang and I want to make a website transition from java to erlang.
Sookie Singh
  • 1,543
  • 11
  • 17
1
vote
1 answer

boss_db issue while saving record

I am using boss_db for a small project and are having an issue that I haven't been able to decipher from the documentation. Here's my Postgres DB table: CREATE TABLE recordings ( recording_id uuid PRIMARY KEY, created …
lfurrea
  • 176
  • 1
  • 10
1
vote
1 answer

Link my app to another app

I'm just starting work on a new ChicagoBoss app (call it my_app). I've got an existing app (call it ext_app) I'd like to link to, so I can call functions such as ext_app:start() from my_app. At the moment I'm accomplishing this using rebar, which…
smithfarm
  • 313
  • 2
  • 10