Closed eklem closed 9 years ago
Hmm- are the responses sending anything back? Inspect them in the "network" tab of developer tools and double check that they are producing results
not getting anything back in the norch-angular-app
. Development tool says "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data". Same with all the other matcher and search GET's.
But shnould I clone norch instead of installing from NPM?
Ok, that wasn't it. Cloned norch and did npm install, same error.
Hmmm weird, will investigate...
Do I need to clone search-index as well, instead of npm install
inside cloned norch-folder?
you need to npm install a norch, and run it
Then, in another directory, clone the norch-angular-app, cd, and index the test data before running "npm start"
Yes, installed norch, got it running, cloned norch-angular-app, indexed, did npm install
and ran it.
Oh! Its probably the Access-Control-Allow-Origin problem
Start Norch like so: ./node_modules/norch/bin/norch -c http://localhost:8000
Does that work?
Works like a charm!
Is norch-angular-app tested against latest search-index @fergiemcdowall?
I've re-installed norch, started it and indexed the world-bank-projects-norchified.json dataset. I can search norch and get nice JSON back when typing
http://localhost:3030/search?q=papua
I've then clond
norch-angular-app
, typednpm install
inside the cloned folder. When I typenpm start
I get an empty search box on URLhttp://localhost:8000/app/index.html#/search
, but when I typepapua
the app is without response (nothing happens). The console window where I run norch is logging the following:... and the console window for the norch-angular-app says: