wichert / rest_toolkit

Simple REST servers
http://rest-toolkit.rtfd.org/
BSD 2-Clause "Simplified" License
36 stars 7 forks source link

Can't get Angular Demos to work #17

Open TWry opened 9 years ago

TWry commented 9 years ago

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.

pauleveritt commented 9 years ago

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 notifications@github.com 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.

amragaey commented 8 years ago

is there a solution?