rest_toolkit icon indicating copy to clipboard operation
rest_toolkit copied to clipboard

Can't get Angular Demos to work

Open TWry opened this issue 8 years ago • 2 comments

When running python app.py, I'm getting the following result in the browser when visiting http://localhost:8088/static/index.html:

{"message": "http://localhost:8088/static/index.html"}

I tried the Angular hello_world and the angular_todo demos.

TWry avatar Aug 28 '15 06:08 TWry

It appears that rest_toolkit is having an error serving up static assets. The quick_serve function publishes the current working directory under a static view of “static”, or at least that’s what this line says it is doing in pdb:

https://github.com/wichert/rest_toolkit/blob/master/src/rest_toolkit/init.py#L286 https://github.com/wichert/rest_toolkit/blob/master/src/rest_toolkit/init.py#L286

The demo itself is working ok, as this:

http://localhost:8088/todos http://localhost:8088/todos

…returns JSON.

—Paul

On Aug 28, 2015, at 2:32 AM, TWry [email protected] wrote:

When running python app.py, I'm getting the following result in the browser when visiting http://localhost:8088/static/index.html:

{"message": "http://localhost:8088/static/index.html"}

I tried the Angular hello_world and the angular_todo demos.

— Reply to this email directly or view it on GitHub https://github.com/wichert/rest_toolkit/issues/17.

pauleveritt avatar Aug 28 '15 12:08 pauleveritt

is there a solution?

amragaey avatar Nov 23 '15 19:11 amragaey