Example applicationΒΆ
First install Invenio-UserProfiles, setup the application and load fixture data by running:
$ pip install -e .[all]
$ cd examples
$ ./app-setup.sh
$ ./app-fixtures.sh
You should also have the Redis running on your machine. To know how to install and run redis, please refer to the redis website.
Next, start the development server:
$ export FLASK_APP=app.py FLASK_DEBUG=1
$ flask run
and open the example application in your browser:
$ open http://127.0.0.1:5000/
Choose a user to login:
- user info@inveniosoftware.org password 123456
- user another@inveniosoftware.org password 123456
You can check the administration page opening the page:
$ open http://127.0.0.1:5000/admin
Note that, as defined in our fixtures, only info@inveniosoftware.org user can enter.
To uninstall and purge the example app, run:
$ ./app-teardown.sh