Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

Real time reloading for writing APIs and seeing changes in real time. #57

Closed mindey closed 7 years ago

mindey commented 7 years ago

Real time reloading

To reload the server on every change in files of the directory, you may find entr convenient, e.g.:

$ ls -d * | entr sh -c "killall endpoints; endpoints --prefix=mycontroller --host=localhost:8000 &"

Could add this or something comparable to readme.

Jaymon commented 7 years ago

We mostly use tests that start and stop the server on each test run, so we've never investigated how to do this, but I think this is a great solution for this problem and I had never heard of entr before. I've updated the readme. Thanks