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
1 answer

Does erlang ChicagoBoss webserver support couchdb (couchbase)?

I am looking to use erlang ChicagoBoss webserver to develop webapp with Couchbase(Couchdb) as backend. But I don't see adapter for it other than Riak and Mongodb. Any suggestions?
curiosity
  • 73
  • 3
0
votes
2 answers

Get a specific value from a proplist

I have a proplist like this: {ok,{todo,"todo-21","Foo2"}} How can I get the without the "ok"? I would like to output this as json in my controller: {json, {todo,"todo-21","Foo2"}} Is there some nifty way to do this?
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
0
votes
0 answers

Erlang.mk + boss_db: minimal working example

I am unable to find any existing examples of using Erlang.mk as a build system with boss_db. When I bootstrap Erlang.mk project, and just add boss_db as DEPS += boss_db and run make run, Erlang prints that boss_db application started. But when I try…
sandyre
  • 175
  • 2
  • 9
0
votes
1 answer

chicagoboss cannot connect js file and erl file

about a website which runs with chicagoboss and otp19, I have three files: index.html, config.js and zeus_config_controller.erl, those 3 files have been working just fine before, but after I copy those files to a new server and run the website at…
zoro
  • 333
  • 3
  • 13
0
votes
1 answer

Using MongoDB with Chicago Boss

I'm a newbie to Erlang and I'm using Chicago Boss for a small web project. I have had no issues working with the in-memory db but when I configured it to use mongodb it doesn't go quite as expected. Below is my boss.config database…
Wedava
  • 1,211
  • 2
  • 16
  • 30
0
votes
1 answer

How to add more than one parameters in ChicagoBoss route

I am trying to get the following link to work: http://localhost:8001/name/jason/grey and the routes definition: {"/name/([a-zA-Z]+)/([a-zA-Z]+)", [{controller, "stuff"}, {action, "getStudentNames"}, [{firstname, '$1'}, {lastname, '$2'}]]}. and then…
Sunday Okpokor
  • 721
  • 6
  • 18
0
votes
1 answer

Controller filter not run in Chicago Boss

I am trying write a controller filter (at src/lib/http_basic_auth_filter.erl): -module(http_basic_auth_filter). -export([before_filter/2]). -compile({parse_transform, lager_transform}). before_filter(Config, RequestContext) -> …
user2006656
0
votes
1 answer

Adding cb_admin to current ChicagoBoss installation

I'm starting with ChicagoBoss as well I just installed ChicagoBoss following the github instructions. Then, I created a project: make make app PROJECT=myproject cd ../myproject Everything's cool so far, now, I want to add the admin interface such…
NeoVe
  • 3,857
  • 8
  • 54
  • 134
0
votes
1 answer

Chicago Boss Cannot start in production mode

I can run it on dev mode but not in production mode. I can't see any errors from the error log and the access log Why dev works, not production? boss version: 0.8.15 The last line in the console 2016-05-28 16:00:08.538 [info] <0.7.0> Application…
Hao
  • 6,291
  • 9
  • 39
  • 88
0
votes
1 answer

boss_db:save_record not working with PostgreSQL adapter

I'm trying to save a BossRecord to the database using pgsql adapter, of this way: boss_db:save_record(admins:new("admins-1", 1)). In ChicagoBoss's shell this returns: {ok,{admins,"admins-1",1}} But the record is not actually being saved in the…
Ricardo B.
  • 110
  • 1
  • 11
0
votes
0 answers

JSON encoding in chicagoBoss

I have created a table name 'drugs' in chicagoboss. Mnesia has been used. Schema of the table is: id, generic_name, brand_name, description One record of the table is: { drugs, "drugs-3", "Generic name", ["Trade…
0
votes
1 answer

Need an use case example for stream response in ChicagoBoss

ChicageBoss controller API has this {stream, Generator::function(), Acc0} Stream a response to the client using HTTP chunked encoding. For each chunk, the Generator function is passed an accumulator (initally Acc0) and should return either…
Hao
  • 6,291
  • 9
  • 39
  • 88
0
votes
1 answer

Can simple_bridge in chicago boss be able to get request custom header?

I tried to add custom header "api_key" into the client request but simple bridge seems not picking up the header. Chicago boss which uses simple bridge has a list of valid headers but then how can I use custom header then? Can't I?
Hao
  • 6,291
  • 9
  • 39
  • 88
0
votes
1 answer

How to check chicagoboss version

We have more time to release our a Chicagoboss framework project. Since we're thinking to update it to its latest version. But I don't know what's the way to find its current version. Since - How can I find the version of ChicagoBoss?
trex
  • 3,848
  • 4
  • 31
  • 54
0
votes
1 answer

Why chunk is returning some code while reading the file in Erlang/ChicagoBoss

Further to my old question, We are generating XML using following code: download_xml('GET', [])-> Xml =generateXML(123445), %% generated Xml data in string without any values 400,.etc Filename = export_xml:get_file_name(?SESSION_ID1,…
trex
  • 3,848
  • 4
  • 31
  • 54