This project is a simple PHP server, running inside Docker, that allows you to store and manage files in a designated directory.
-
Clone the repository:
git clone <repo-url>
-
Build and start the Docker containers:
docker-compose up -d --build
-
Access the API by opening http://localhost:9099/api in your browser.
- PHP 8.2 or higher
- Composer
- Docker
- List files in directory
- GET /api/list?dir={directory}
- List the files in the specified directory.
- Add a file to a directory
- POST /api/add
- path: The path to the directory.
- params: The file to be uploaded.
- POST /api/add
- List files in a directory:
bin/console list {directory}
- Add functionality to upload files to the directory.
- Build a simple frontend for file uploads and file listing.
- Retrieve and download a single file from the directory.
- Implement file deletion from the directory.
- Enhance the file list view with additional information (e.g., size, date, etc.).