This service handles file uploading to azure storage blob. It consists of a three endpoints with which one of them allows you to submit a file and then get a response url.
- Clone server repository by copying the link and then cloning locally
git clone git@github.com-afrilogic:domey-afrilogic/file-uploader-az.git
cd file-uploader-az
- Install Dependencies.
yarn
- Add Environment Variables
- Duplicate .env.example and then add your variables:
- Start Service.
- For Development Mode
yarn dev or npm run dev
- For production mode
yarn start or npm start
- **Access the upload endpoint via.
localhost:5000/upload :POST and req.body.image will take the file as form-data