An open API service indexing awesome lists of open source software.

https://github.com/elyse502/cloud-file-storage

Cloud based file storage system
https://github.com/elyse502/cloud-file-storage

cloud-computing cloudinary-api cloudinary-integration file-system mern-stack-development

Last synced: 5 months ago
JSON representation

Cloud based file storage system

Awesome Lists containing this project

README

          

# โ˜๏ธ Cloud-Based File Storage System

A lightweight MERN stack (MongoDB, Express, React, Node.js) application that allows users to register, log in, upload files (including images, PDFs, and docs), and manage them with Cloudinary as the file storage backend.

---

## ๐Ÿ“ฆ Features

- โœ… User registration & login (JWT auth)
- โ˜๏ธ File upload & retrieval via Cloudinary
- ๐Ÿ—‚ Supports images, PDFs, docs, HTML, etc.
- ๐Ÿงพ View uploaded files per user
- โŒ Delete files from both DB & Cloudinary

---

## ๐Ÿš€ Quick Setup Guide

### ๐Ÿ“ 1. Clone the Repository

```bash
git clone https://github.com/elyse502/cloud-file-storage.git
cd cloud-file-storage
```

---

## โš™๏ธ 2. Server Setup

```bash
cd server
npm install
```

### ๐Ÿ” Add a `.env` file in the `/server` folder:

```env
PORT=5000
MONGO_URI="your_mongo_connection_string_here"
JWT_SECRET="your_jwt_secret"
CLOUD_NAME="your_cloudinary_cloud_name"
CLOUD_API_KEY="your_cloudinary_api_key"
CLOUD_API_SECRET="your_cloudinary_api_secret"
```

> ๐Ÿ”’ Your Mongo URI should look like:
>
> ```
> mongodb+srv://:@cluster0.mongodb.net/
> ```

### โ–ถ๏ธ Start the server

```bash
npm run dev
```

---

## ๐ŸŒ 3. Client Setup

```bash
cd ../client
npm install
```

### ๐Ÿ” Add a `.env` file in the `/client` folder:

```env
VITE_API_URL="http://localhost:5000/api"
```

### โ–ถ๏ธ Start the client

```bash
npm run dev
```

---

## ๐Ÿงช Test It

- Go to: `http://localhost:5173`
- Register a new account or login
- Upload files & manage them on your dashboard

---

## ๐Ÿ“ Tech Stack

- **Frontend:** React + Vite + Tailwind CSS
- **Backend:** Express.js + MongoDB + JWT
- **Storage:** Cloudinary (raw & image types)

---

## ๐Ÿ“‚ Folder Structure

```
/client โ†’ Frontend (React)
/server โ†’ Backend API (Express)
/uploads โ†’ (optional) Temporary files if needed
```

---

## ๐Ÿ“„ License

MIT ยฉ [license](https://github.com/elyse502/cloud-file-storage/blob/main/LICENSE)




**Made with โค๏ธ**