This repository demonstrates the integration of MinIO with a SvelteKit application. MinIO is a high-performance object storage system, compatible with Amazon S3 cloud storage service. SvelteKit is a modern framework for building fast, dynamic web applications.
Before you begin, ensure you have met the following requirements:
Clone the repository:
git clone https://github.com/yakupsogut/MinIO-SvelteKit.git
cd MinIO-SvelteKit
Install dependencies:
npm install
Set up MinIO configurations:
Edit the lib/minio.js
file and add your MinIO credentials and configurations:
// lib/minio.js
import { Client } from 'minio';
const minioClient = new Client({
endPoint: 'localhost',
port: 9000,
useSSL: false,
accessKey: 'accessKey',//or username
secretKey: 'secretKey'//or password
});
export default minioClient;
Run the development server:
npm run dev
Open your browser and navigate to http://localhost:3000
.
Build for production: To build the application for production, run:
npm run build
Start the production server:
npm start
src/
: Contains the source code of the SvelteKit application.routes/
: SvelteKit routes and pages.lib/
: Utility functions and MinIO integration logic.Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.