# Cloud Files
Cloud Files is an application that allows users to manage and store files in the cloud. It integrates with Cloudinary for file storage and management.
## Features
- User Registration: Users can create an account by providing their name, email, and password.
- User Login: Registered users can log in to their account using their email and password.
- Upload Images: Users can upload multiple images to their cloud storage.
- Download Images: Users can download images from their cloud storage by specifying the image ID.
- Get Cloudinary Data: Users can retrieve their dedicated Cloudinary data, including the API key, API secret, and cloud name.
## Technologies Used
- Node.js
- Express.js
- MongoDB (or any other database of your choice)
- Cloudinary (for file storage and management)
- Swagger (for API documentation)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/cloud-files.git
-
Install the dependencies:
cd cloud-files npm install
-
Set up environment variables:
- Create a
.env
file in the root directory of the project. - Define the following environment variables in the
.env
file:DB_CONNECTION
: Connection URL for your MongoDB database.JWT_SECRET
: Secret key for JSON Web Token (used for authentication).CLOUDINARY_CLOUD_NAME
: Cloudinary cloud name.CLOUDINARY_API_KEY
: Cloudinary API key.CLOUDINARY_API_SECRET
: Cloudinary API secret.
- Create a
-
Start the application:
npm start
-
The application will be running at
http://localhost:5000
.
API documentation is available using Swagger. You can access the API documentation by visiting http://localhost:5000/api-docs
in your web browser.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License.