CB application: Bingo Caller

29 views
Skip to first unread message

Emacs the Viking

unread,
Jan 3, 2015, 8:33:07 AM1/3/15
to chica...@googlegroups.com
Hi,

I just uploaded a totally mad as a bag of frogs CB application to here:


It was a mad idea that 48 hours later actually worked and did sterling service on New Years eve at the annual mad bingo part we have at our house!

It shows how *I* have made an AngularJS application work with a CB powered API. It is all very very simple, the CSS is horrendous, the HTML contains all the style inlined, it probably breaks every rule of "decent" software development there is.

Being a 30+ years IT professional developer I would just say, "Well, that's Agile" and walk away grinning from ear to ear.

I hope the application code shows how to use MongoDB with a simple record, how to make a SPA application with AngularJS/CB work at leat my way.

YMMV.

I am loving CB, not been this excited since I played with Nitrogen when it first came out years ago.
Evan started something good here and kudos to you all for keeping it alive.
I may even attempt to offer my own stumbling assistance in the future.

I am into my second project with CB now, for me, a very *serious* one in that I am funding it and hope to get a startup founded this year to roll out something very very interesting.

"'Nuff said"

Enjoy. 
All the best,
Sean Charles.

Emacs the Viking

unread,
Jan 3, 2015, 11:39:55 AM1/3/15
to chica...@googlegroups.com
Forgive if this ends up as a "double post" but I just received an email from Laurent Roger who downloaded it and it failed to build: Here is his message in toto:

ERROR: boss failed while processing /Users/laurent/dev/erlang/bingo_boss: {'EXIT',

    {undef,

        [{boss_rebar,init_conf,

             [[{boss,

                   [{path,"./deps/boss"},

                    {applications,[bingo_boss,cb_admin]},

                    {assume_locale,"en"},

                    {db_host,"localhost"},

                    {db_port,27017},

                    {db_adapter,mongodb},

                    {db_database,"bingo"},

                    {port,8001},

                    {server,cowboy},

                    {session_adapter,mock},

                    {session_key,"_boss_session"},

                    {session_exp_time,525600},

                    {session_cookie_http_only,false},

                    {session_cookie_secure,false},

                    {template_tag_modules,[]},

                    {template_filter_modules,[]},

                    {dummy,true}]},

               {tinymq,[]},

               {lager,

                   [{handlers,

                        [{lager_console_backend,info},

                         {lager_file_backend,

                             [{"log/error.log",error,10485760,"$D0",5},

                              {"log/console.log",info,10485760,"$D0",5}]}]}]},

               {cb_admin,

                   [{path,"./deps/cb_admin"},

                    {allow_ip_blocks,["127.0.0.1"]},

                    {base_url,"/admin"}]},

               {bingo_boss,

                   [{path,"../bingo_boss"},{base_url,"/"},{dummy,true}]}]],

             []},

         {boss_plugin,init,3,[{file,"priv/rebar/boss_plugin.erl"},{line,92}]},

         {boss_plugin,boss,2,[{file,"priv/rebar/boss_plugin.erl"},{line,32}]},

         {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,446}]},

         {rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,371}]},

         {rebar_core,process_dir1,6,[{file,"src/rebar_core.erl"},{line,235}]},

         {rebar_core,process_commands,2,

             [{file,"src/rebar_core.erl"},{line,90}]},

         {rebar,main,1,[{file,"src/rebar.erl"},{line,58}]}]}}

WARN:  Expected /Users/laurent/dev/erlang/bingo_boss/deps/boss to be an app dir (containing ebin/*.app), but no .app found.

WARN:  Expected /Users/laurent/dev/erlang/bingo_boss/deps/cb_admin to be an app dir (containing ebin/*.app), but no .app found.

In order to have it ready i had to 

rm -rf deps/*

rebar g-d

rebar compile 

init-dev

Works fine now; )


All I can say is, "Thanks" for that. It is highly likely in the initial "confusion cloud" one experiences when learning something new that I omitted a few steps, indeed, was I even aware I had omitted them!?  Either way, I am off to read the rebar manual and find out what "g-d" means.

Many thanks Lauren for pointing that out.

Sean.
 
Reply all
Reply to author
Forward
0 new messages