Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.08 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.08 KB

Upload service

Upload service is part of the Alchemy ecosystem. Its role is to handle uploaded assets by authenticated users and trigger other services so they can fetch the file.

Service wraps the following end projects:

  • Upload API (back end)
  • Uploader client (front end)

Setup

Create "uploader" application on Phraseanet

  • Create new application (i.e uploader) at https://<alpha.preprod.alchemyasp.com>/developers/application/new/
  • Generate a token

Note that the token will be link to your user account. Uploader will reach Phraseanet through your user.

TODO: Phraseanet should provide an API key instead of a user OAuth token.

Override environment variables defined in .env file:

DEV_MODE=false
CLIENT_ID=<THE_CLIENT_ID>
CLIENT_SECRET=<A_SECRET>

Development

In order to avoid commit request to consumer target, you can define ASSET_CONSUMER_ACCESS_TOKEN=avoid.

Further reading