FileChonk allows you to browse and download files from an Amazon S3 bucket. It provides a user-friendly file tree interface powered by the Chonky and Chonky-Icon-Fontawesome npm packages.
- Browse files and folders in an Amazon S3 bucket
- Download files from an Amazon S3 bucket
- Auto-reload of both frontend and backend when files change.
- AWS SDK for JavaScript v3 integration for seamless S3 interactions.
- Express server with logging and error handling.
- Customizable through environment variables.
- Dockerized for easy deployment.
- Node.js (v12 or higher)
- npm (v6 or higher)
-
Clone the repository
git clone https://github.com/Dev-29/filechonk.git cd filechonk
-
Install dependencies for both frontend and backend:
cd frontend npm install cd ../backend npm install
-
Create a .env file and add the following
AWS_REGION=YOUR_AWS_REGION S3_BUCKET_NAME=YOUR_S3_BUCKET_NAME AWS_ACCESS_KEY_ID=YOUR_AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET_ACCESS_KEY
-
Configuration:
- Open your browser and navigate to
http://localhost:9000
(or the specified port number). - You should see the FileChonk interface, allowing you to browse and download files from your S3 bucket.
- Build the frontend Docker image
cd frontend docker build -t filechonk-frontend .
- Build the backend Docker image
cd ../backend docker build -t filechonk-backend .
- Run the docker image
docker run -d -p 3000:3000 --name filechonk-backend filechonk-backend docker run -d -p 9000:9000 --name filechonk-frontend filechonk-frontend
- Configuration:
- Open your browser and navigate to
http://localhost:9000
(or the specified port number). - You should see the FileChonk interface, allowing you to browse and download files from your S3 bucket.