- run
npm install
to install dependencies - Create bucket in GCP Storage with bucket name:
fileStorage
- Create GCP account access key
- rename file to
gcpKey.json
- copy
gcpKey.json
file intoservice/uploadService/util/auth/
install nodemone globally on your machine
run npm install nodemon -g
run npm run start:dev
in your terminal
run npm run start
in your terminal
- Open PostMan app
- Make a post request to
http://localhost:{port}/upload
- Headers
- disable header item
Content-Type
(if it exists)
- disable header item
- Body
- form-data
- Body: key: file
- click "choose files" button to attach test file to upload
- Headers