/mendeley-python-skeleton

Skeleton Flask app that uses the Mendeley SDK

Primary LanguagePythonApache License 2.0Apache-2.0

Mendeley Python Skeleton

This is a simple Python application that uses the Mendeley API.

Getting started

  1. Register your client at the developer portal. Use dummy as your redirect URI. This will give you a client ID and secret.

  2. Click on the button below to deploy the app to Heroku. You will need to fill in the client ID and secret from the previous step.

    Deploy

  3. Back at the developer portal, change your app's redirect URI to the Heroku HTTPS URL with /oauth on the end. For example, if your Heroku app's name is:

    secure-citadel-6801

    then your redirect URI should be:

    https://secure-citadel-6801.herokuapp.com/oauth

Your app should now be deployed. You can now follow the instructions in the Heroku console to clone and edit the code.

Running the app locally

  1. Clone the app using the instructions on the "Code" tab in the Heroku console.
  2. Register another client ID and secret, with the redirect URL http://localhost:5000/oauth.
  3. Run foreman start to start the app, and go to http://localhost:5000 in your browser.

Further reading