Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-webapp : "dashboard" files are missing #58

Closed
nsteinmetz opened this issue May 25, 2013 · 9 comments
Closed

create-webapp : "dashboard" files are missing #58

nsteinmetz opened this issue May 25, 2013 · 9 comments

Comments

@nsteinmetz
Copy link

Hi,

Just starting with erica and doing the quick guide:

erica create-webapp
cd myapp
erica push http://127.0.0.1:5984/testdb

But once pushed and you open the url in the browser, you have a blank page:

http://localhost:5984/testdb/_design/myapp/_rewrite/

Indeed :

[21:24:29,223] GET http://localhost:5984/dashboard/_design/dashboard/_rewrite/static/js/topbar.js [HTTP/1.1 404 Object Not Found 2ms]

Side question as I don't get it so far: is the "webapp" purpose explained somewhere ? To see the difference from a traditionnal couchapp.

Thanks,
Nicolas

@ryanramage
Copy link
Collaborator

Hey, this was so apps can easily work in this environment: http://garden20.com/market/ . If you want the dashboard, locally, follow these directions: http://kan.so/docs/Setting_Up_A_Garden

But if you want you can delete this line:
https://github.com/benoitc/erica/blob/master/priv/templates/webstyle/index.html#L5

As for the webapp layout, it an easier layout for a lot of devs to get going with. We are considering switching to it for fauxton development (the next futon).

@nsteinmetz
Copy link
Author

Hi,

Indeed, I could have removed the line but for a sample app, I was surprised to have nothing :)

Is there some "complete" app somehere in webapp style to see the differences of file organisation compare to the original couchapp style ? So that I can see the opportunity whether I should use old or new layout ?

Thanks,
Nicolas

@vonKristoff
Copy link

BTW .. im totally lost with this topbar.js error too. My local couchdb says it cannot find dashboard.couch .. Am I at a loss with the newest version of couchdb! .. I've just installed Erica .. and want to have a play - otherwise ill have to stick to the 'dead' couchapp.

Is there anything I need to get started with a erica webapp?

@benoitc
Copy link
Owner

benoitc commented Nov 8, 2013

Odd I just built a new version of erica and create-webapp was working. Is
there anything reported in the logs when you're launching the make?

On Fri, Nov 8, 2013 at 2:38 PM, Jean-Christophe Nicolas <
notifications@github.com> wrote:

BTW .. im totally lost with this topbar.js error too. My local couchdb
says it cannot find dashboard.couch .. Am I at a loss with the newest
version of couchdb! .. I've just installed Erica .. and want to have a play

  • otherwise ill have to stick to the 'dead' couchapp.

Is there anything I need to get started with a erica webapp?


Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-28062887
.

@vonKristoff
Copy link

Compile Output from make :::

==> erica (compile)
Compiled src/erica.erl
Compiled src/erica_clone.erl
src/erica_config.erl:119: Warning: function get_config_dbs/2 is unused
Compiled src/erica_config.erl
Compiled src/erica_init.erl
Compiled src/erica_core.erl
Compiled src/erica_ignore.erl
Compiled src/erica_log.erl
src/erica_macros.erl:226: Warning: crypto:md5/1 is deprecated and will be
removed in in a future release; use crypto:hash/2
Compiled src/erica_macros.erl
Compiled src/erica_templater.erl
src/erica_util.erl:275: Warning: crypto:md5_init/0 is deprecated and will
be removed in in a future release; use crypto:hash_init/1
src/erica_util.erl:308: Warning: crypto:md5_update/2 is deprecated and will
be removed in in a future release; use crypto:hash_update/3
src/erica_util.erl:311: Warning: crypto:md5_final/1 is deprecated and will
be removed in in a future release; use crypto:hash_final/2
Compiled src/erica_util.erl
src/erica_push.erl:358: Warning: variable 'FileInfo' is unused
src/erica_push.erl:583: Warning: function git_info/0 is unused
src/erica_push.erl:595: Warning: variable 'Couchapp' is unused
Compiled src/erica_push.erl
Compiled src/erica_webbrowser.erl
Compiled src/erica_web.erl
Compiled src/getopt.erl
Compiled src/mustache.erl

Also just tried erica create app ..

and there's nothining in it but bare folders .. couchapp had a form of
structure to get you going. Am I being dumb!?

On 8 November 2013 14:04, Benoit Chesneau notifications@github.com wrote:

Odd I just built a new version of erica and create-webapp was working. Is
there anything reported in the logs when you're launching the make?

On Fri, Nov 8, 2013 at 2:38 PM, Jean-Christophe Nicolas <
notifications@github.com> wrote:

BTW .. im totally lost with this topbar.js error too. My local couchdb
says it cannot find dashboard.couch .. Am I at a loss with the newest
version of couchdb! .. I've just installed Erica .. and want to have a
play

  • otherwise ill have to stick to the 'dead' couchapp.

Is there anything I need to get started with a erica webapp?


Reply to this email directly or view it on GitHub<
https://github.com/benoitc/erica/issues/58#issuecomment-28062887>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-28064440
.

best,
Jean-Christophe Nicolas ../

@benoitc
Copy link
Owner

benoitc commented Nov 8, 2013

@vonKristoff create-app create nothing but the .couchapprc, langage and a default view:

$ ./erica create-app appid=test
==> erica (create-app)
Writing test/_id
Writing test/language
Writing test/.couchapprc
Writing test/views/by_type/map.js
enki:erica benoitc$ 

To have a default couchapp like with the old couchapp command you can create an app using a template:

$ ./erica create appid=test1 template=example
==> erica (create)
Writing test1/_id (forcibly overwriting)
Writing test1/.couchapprc (forcibly overwriting)
Writing test1/language (forcibly overwriting)
Writing test1/README.md
Writing test1/couchapp.json
Writing test1/views/recent-items/map.js
Writing test1/_attachments/index.html
Writing test1/_attachments/script/app.js
Writing test1/_attachments/style/main.css
Writing test1/_attachments/couchapp/jquery.couch.app.js
Writing test1/_attachments/couchapp/jquery.couch.app.util.js
Writing test1/_attachments/couchapp/jquery.couchForm.js
Writing test1/_attachments/couchapp/jquery.couchLogin.js
Writing test1/_attachments/couchapp/jquery.couchProfile.js
Writing test1/_attachments/couchapp/jquery.mustache.js
Writing test1/_attachments/couchapp/md5.js

@vonKristoff
Copy link

ok -> thanks - makes sense ;)

On 8 November 2013 15:06, Benoit Chesneau notifications@github.com wrote:

create-app create nothing but the .couchapprc, langage and a default view:

$ ./erica create-app appid=test
==> erica (create-app)
Writing test/_id
Writing test/language
Writing test/.couchapprc
Writing test/views/by_type/map.js
enki:erica benoitc$

To have a default couchapp like with the old couchapp command you can
create an app using a template:

$ ./erica create appid=test1 template=example
==> erica (create)
Writing test1/_id (forcibly overwriting)
Writing test1/.couchapprc (forcibly overwriting)
Writing test1/language (forcibly overwriting)
Writing test1/README.md
Writing test1/couchapp.json
Writing test1/views/recent-items/map.js
Writing test1/_attachments/index.html
Writing test1/_attachments/script/app.js
Writing test1/_attachments/style/main.css
Writing test1/_attachments/couchapp/jquery.couch.app.js
Writing test1/_attachments/couchapp/jquery.couch.app.util.js
Writing test1/_attachments/couchapp/jquery.couchForm.js
Writing test1/_attachments/couchapp/jquery.couchLogin.js
Writing test1/_attachments/couchapp/jquery.couchProfile.js
Writing test1/_attachments/couchapp/jquery.mustache.js
Writing test1/_attachments/couchapp/md5.js


Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-28068967
.

best,
Jean-Christophe Nicolas ../

@benoitc
Copy link
Owner

benoitc commented Nov 8, 2013

Working on the doc is planned this month. In the mean time if you have any question feel free to open a doc ticket

@ryanramage
Copy link
Collaborator

Fixed in d863720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants