This example express.js
server for sign-up/sign-in and upload/get/download file.
npm install
Create necessary volume by running:
docker volume create mydb
Then run docker-compose to start MySQL:
docker-compose up -d
To start server you need at the first compile
npm run watch
After successfully compiling you can start server
npm start
Add Postman collection from ./postman_collection.json
directory into Postman.
NOTE Check your
Bearer Token
, is it not invalid or revoked.
sign-up
Make request sign-up-request
for registration:
sign-in
Make request sign-in-request
for sign in and you get your jwt
token:
new-token
Make request sign-in-new-token-request
for new jwt
token:
upload-file
Make request upload-file-request
for upload file:
list-file
Make request file-list-request
for get list files:
delete-file
Make request delete-file-request
for delete file by id:
get-file
Make request get-file-request
for get file by id:
download-file
Make request download-file-request
for download file by id:
update-file
Make request update-file-request
for update file by id:
info
Make request info-request
for get info user:
logout