Sign inSign up

mathcovax/easyshare

By mathcovax

•Updated over 3 years ago

Share directory

Image
0

159

mathcovax/easyshare repository overview

⁠Easyshare

How to use it with docker:

# start docker image
# you must bind folder "/share" of container
# you must bind on port 80 of container
docker run -v $(pwd)/mySuperFolder:/share -p 1506:80 mathcovax/easyshare

How to use it with docker compse:

# in docker-compose.yml

version: '3'
services:
  easyshare:
    image: mathcovax/easyshare
    # use port 80
    # you must bind on port 80 of container
    ports:
     - '1506:80'
    # sync folder "mySuperFolder" with "share"
    # you must bind folder "/share" of container
    volumes:
      - ./mySuperFolder:/share
# start docker compose
docker compose up

How to use it with gloabl command:

# install on your machine
npm i -g @mathcovax/easyshare

# start on port 80 and share current dir with global command
easyshare 80

How to use it with local command:

# install in your project
npm i @mathcovax/easyshare

# start on port 80 and share current dir with local command
npx easyshare 80

How to use it in javascript:

# install in your project
npm i @mathcovax/easyshare
// in index.js

// import easyshare
import Easyshare from "easyshare";

// start on port 80 and share folder "mySuperFolder" of current workdir 
new Easyshare({port: 80, path: "./mySuperFolder"});
# execute javascript file
node index.js

Tag summary

Content type

Image

Digest

sha256:bdb7a3d77…

Size

60.2 MB

Last updated

over 3 years ago

docker pull mathcovax/easyshare