Closed Schoonology closed 10 years ago
@seanbrookes - Ready for review.
Schoon, how do I verify this? are there steps to build and run the todo app?
npm test
for the repo now uses this template, since it's end-to-end.
Can you provide a little more context please? for example: where should I run 'npm test'? or am I supposed to run 'npm test'?
Within the directory where you originally cloned bacn
, switch to the
appropriate branch: git checkout feature/todos-template
. Then, within
that same directory, run npm test
. It'll run through a normal bacn
workflow, opening the simulator at the end. Confirm that the simulator
shows a Topcoat-based to-do list application that persists between runs of
the application.
On Mon, Dec 16, 2013 at 6:39 PM, Sean Brookes notifications@github.comwrote:
Can you provide a little more context please? for example: where should I run 'npm test'? or am I supposed to run 'npm test'?
— Reply to this email directly or view it on GitHubhttps://github.com/strongloop/bacn/pull/7#issuecomment-30713018 .
@Schoonology I took another run at this and tried running:
bacn create bacn-test com.strongloop.bacn-test BacnTest
but it failed with the following:
bower font-awesome#~4.0.3 retry Download of https://github.com/FortAwesome/Font-Awesome/archive/v4.0.3.tar.gz failed with ETIMEDOUT, retrying in 1.7s
bower font-awesome#~4.0.3 retry Download of https://github.com/FortAwesome/Font-Awesome/archive/v4.0.3.tar.gz failed with ETIMEDOUT, retrying in 3.4s
bower font-awesome#~4.0.3 retry Download of https://github.com/FortAwesome/Font-Awesome/archive/v4.0.3.tar.gz failed with ETIMEDOUT, retrying in 4.6s
bower resolved git://github.com/topcoat/topcoat.git#0.8.0
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/FortAwesome/Font-Awesome.git", exit code of #128
Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Operation timed out
create client/www/index.html
Error: 1
create client/www/css/main.css
create client/www/js/main.js
I tried it again and it looks like Github is having some trouble with the FontAwsome repo.
I'll try again later
haha looks like our messages passed each other in the ether.
Yesterday I did try running:
npm test
from my bacn root and it failed as well (should have mentioned that):
Seans-MacBook-Air-2:bacn seanbrookes$ npm test
> bacn@0.3.0 test /Users/seanbrookes/_stacks/projects/bacn
> cd test; make
sh: make: command not found
npm ERR! weird error 127
npm ERR! not ok code 0
Install make
. While you're at it, make sure you have python
, gcc
, and g++
.
updating command line tools in XCode seems to have resolved the 'make' issues and I can now run
npm test
the todo app comes up but with the following error in the terminal. I can enter text in the form but when I submit the text goes away but doesn't appear to be saved anywhere.
Both client and server are now running. Press Ctrl-C to exit.
Error: Cannot GET /todos
at Object.raiseUrlNotFoundError [as handle] (/Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/lib/middleware/urlNotFound.js:14:17)
at next (/Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at resume (/Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/node_modules/express/node_modules/connect/lib/middleware/static.js:65:7)
at SendStream.error (/Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/node_modules/express/node_modules/connect/lib/middleware/static.js:80:37)
at SendStream.EventEmitter.emit (events.js:95:17)
at SendStream.error (/Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/node_modules/express/node_modules/send/lib/send.js:147:51)
at SendStream.onStatError (/Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/node_modules/express/node_modules/send/lib/send.js:248:48)
at /Users/seanbrookes/_stacks/projects/bacn/test/bacn-test/server/node_modules/loopback/node_modules/express/node_modules/send/lib/send.js:320:26
at Object.oncomplete (fs.js:107:15)
GET /todos 404 16ms
Re-pull. That was already fixed.
That is, it's a bug stemming from an inappropriate patch release by the Loopback folks that was fixed in the last commit pushed to this branch.
ok, after latest pull it seems to be working.
The only question I have now is: how do I restart the app once I stop it in the terminal? The only command that seems to work is:
npm test
but that goes through a whole dependency download and build process. Is that by design?
npm test
starts both client and server. To restart the client, you need
to use the Simulator like you would any other iDevice. Tap the Home key,
double-tap the Home key, swipe away the BacnTest application, go back to
the Home screen, find BacnTest (spoiler: it should be on the second page),
and re-run it.
On Wed, Dec 18, 2013 at 5:38 PM, Sean Brookes notifications@github.comwrote:
ok, after latest pull it seems to be working.
The only question I have now is: how do I restart the app once I stop it in the terminal? The only command that seems to work is:
npm test
but that goes through a whole dependency download and build process. Is that by design?
— Reply to this email directly or view it on GitHubhttps://github.com/strongloop/bacn/pull/7#issuecomment-30888360 .
This template provides a few key features: - A common context against other frameworks (see TodosMVC). - A simple application for Bacn newcomers to learn the framework. - An integration of extra-Bacn components (topcoat, FontAwesome).