-
Notifications
You must be signed in to change notification settings - Fork 1
client configuration
Initial data are provided at $BVCLIENT/src/bv/client/initial_data.json. Besides settings default local data, it will create an automatical superuser with Django: name: bvclientadmin ; pass: bvclient
Every time your are asked to update your table data, you may choose to edit your initial_data.json file ; then re-run the syncdb command:
cd $BVCLIENT source $MT/bin/activate DJANGO_SETTINGS_MODULE="bv.client.settings_dev" bin/django-admin.py syncdb --no-input
You will have to update:
- The oauthserver url both in the oauthserver table and in the settings file at: DEFAULT_SERVER_ROOT_URL
- The secret, identifier and key of your consumer token table with the credential you will receive from this oauthserver.
Create an user on the server. Request an api access: choose the identifier of your consumer application.
This identifier will have to be set up both in the table (see the above section) and the BVCLIENT_OAUTH_APPID.
Once your api access request gets validated, you will receive your key and secret by mail. Enter it in the table.
You should now be able to consume the REST API of the BisonVert server !
If you want to run your server on a specific host/port, change it in etc/wsgi/instance.ini:
[server:main] use=egg:Paste#http host=<ip|hostname> port=<port>
And mirror your change in the site table.
You are done ! Continue to the launching section.