Add a local server to test store_data #27

Merged
christian-monch merged 1 commit from nf-local-server into master 2022-03-24 09:32:39 +00:00
christian-monch commented 2022-03-24 09:32:30 +00:00 (Migrated from github.com)

This PR adds a local server that can execute store_data.application based on an HTTP-request, ususally from a browser.

The server is started with (if cwd is the root of the project):

python tools/local_server.py

It serves at http://local_host:8000. By copying entry.html to entry_local.html and changing theformaction attribute in entry_local.html to http://localhost:8000/store_data, you can use your browser on entry_local.html to test the behavior of store_data.application.

This PR is geared toward a unixy system, i.e. it assumes that a writable /tmp-directory exists. It also assumes:

  1. datalad is in your path
  2. /tmp/sfb-test exists and is a datalad dataset
  3. /tmp/sfb-test-home exists and is a writeable directory
This PR adds a local server that can execute `store_data.application` based on an HTTP-request, ususally from a browser. The server is started with (if `cwd` is the root of the project): ```shell python tools/local_server.py ``` It serves at `http://local_host:8000`. By copying `entry.html` to `entry_local.html` and changing the`formaction` attribute in `entry_local.html` to `http://localhost:8000/store_data`, you can use your browser on `entry_local.html` to test the behavior of `store_data.application`. This PR is geared toward a unixy system, i.e. it assumes that a writable `/tmp`-directory exists. It also assumes: 1. `datalad` is in your path 2. `/tmp/sfb-test` exists and is a datalad dataset 3. `/tmp/sfb-test-home` exists and is a writeable directory
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sfb1451/z03-assessment-center-data-entry!27
No description provided.