rethinkdb-horizon-angular2 icon indicating copy to clipboard operation
rethinkdb-horizon-angular2 copied to clipboard

not working start script

Open Chalkin opened this issue 8 years ago • 2 comments

I followed your guide until npm start

When I run it and then go to the url I only get "File "dist/index.html" not found"

Somehow it's not creating the dist folder with it's contents

Chalkin avatar Sep 19 '16 14:09 Chalkin

Just downloaded and went through the instructions here, and getting the same message when I visit localhost:8181 :/

OSX El Capitan Node 6 Installed RethinkDB via pkg download

Installed folder structure looks like this: image So hz init is actually not creating all the necessary files.

If I manually create the required file, and paste the contents it should have from the guide, then I can load the page and I see "App works!" scrolling across the page as it should.

benoneal avatar Sep 25 '16 04:09 benoneal

I figured it out. That is only the horizon server address. You still need to open the URL corresponding to your webpack/npm whatever server you are using for your main application. In my case I'm using webpack for AngularJs which then starts on localhost:8080 - then in my angular index.html i add <script src="//127.0.0.1:8181/horizon/horizon.js"></script> to connect to the horizon.js file on the horizon server

Chalkin avatar Sep 26 '16 08:09 Chalkin