This project is a simple cloud that allows you to upload files to a remote server using SFTP. It is built with Next.js and TypeScript. It uses the SSH2 library to connect to the server and upload the files. The project is still in development and will be updated regularly.
- Upload files to a remote server
- Download files from a remote server
- Delete files from a remote server
- Create directories on a remote server
- Delete directories from a remote server
- Node JS 12.16.1 or higher
$ node -v
v12.16.1
- Clone the repository
git clone git@github.com:DoctorPok42/cloud.git
- Install dependencies
npm install
- Change the
.env.example
file name to.env
and fill the values with your own. The.env
file should look like this:
SFTP_URL="" # "192.168.1.1"
SFTP_PORT= # 22
ENCODED_KEY="" # "goodkey"
SFTP_PATH= # "/path/to/remote/directory"
- Run the project
npm run dev
-
Go to http://localhost:3000
-
Login with your ssh credentials
sudo usermod -aG ssh <username>
-
Upload your files
-
Enjoy your cloud
- components - Contains all the components used in the project
- pages - Contains all the pages used in the project
- public - Contains all the static files used in the project
- styles - Contains all the styles used in the project
- api - Contains all the api used in the project