Example applicationΒΆ
Prepare the example app:
$ pip install -e .[all,sqlite]
$ cd examples
$ ./app-setup.sh
$ export FLASK_APP=app.py FLASK_DEBUG=1
$ flask run
Now, you can use invenio-records. Create a test record via CLI:
$ echo '{"title": "Test title"}' | flask records create \
-i deadbeef-9fe4-43d3-a08f-38c2b309afba
Run the development server:
$ flask run
Retrieve a record via web:
$ curl http://127.0.0.1:5000/deadbeef-9fe4-43d3-a08f-38c2b309afba
To reset the example application run:
$ ./app-teardown.sh
See Usage for the extensive list of commands.