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

https://github.com/kiranwankhade/ms2_cw

Uploading Image to Cloudinary - Backend
https://github.com/kiranwankhade/ms2_cw

Last synced: about 2 months ago
JSON representation

Uploading Image to Cloudinary - Backend

Awesome Lists containing this project

README

        

# Cloudinary Image Upload Project

This project provides a complete solution for uploading images to Cloudinary, consisting of a Node.js backend and a React frontend.

## Features

- Upload images to Cloudinary securely.
- Validate file types before uploading.
- Generate secure signatures for Cloudinary uploads.

## Prerequisites

Ensure you have the following installed on your machine:

- [Node.js](https://nodejs.org/) (v16 or later recommended)
- [Git](https://git-scm.com/)

## Quick Setup
### Clone the backend repository:

```bash
git clone https://github.com/kiranwankhade/MS2_CW.git
cd MS2_CW
```

### Install backend dependencies:
```bash
npm install
```

### Configure environment variables:
Create a .env file in the root directory of the backend and add the following Cloudinary credentials

### Run the backend server:
```bash
npm run dev
```

The backend will run locally at http://localhost:4040

# Clone the frontend repository

```bash
git clone https://github.com/imrhlrvndrn/ms2-cloudinary-frontend.git
cd ms2-cloudinary-frontend
```

### Install backend dependencies:
```bash
npm install
```
### Run the backend server:
```bash
npm start
```
The frontend will be accessible at http://localhost:3000