-
/content/:path? display the files or directorys in the paths
-
/upload/:path? upload file to the path
-
/dir/:path? create a directory in the path
-
/donw/:path? donwload the file in the path
-
/rm/:path? delete file in the path
-
/rmdir/:path? delete directory in the path
git clone https://github.com/time9683/CloudHome.git
cd CloudHome
cd api
npm install
cd ../client
npm install
cd api
code .env
change CLOUD=/home/luis/shareCloud to the ubication to save files example : CLOUD=/home/user/cloud
cd client
code .env
change VITE_API_URL=192.168.156.150 to the correct ip the your machine example:
VITE_API_URL=192.168.1.10
cd api
npm run start
the server is running in the port 5000
in mode developer
cd client
npm run dev
you have to push your direction ip and you wish port ip = your ip port = your port
cd client
npx vite --host ip --port port