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
- Host: GitHub
- URL: https://github.com/kiranwankhade/ms2_cw
- Owner: kiranwankhade
- Created: 2025-01-21T07:37:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-25T16:36:03.000Z (4 months ago)
- Last Synced: 2025-02-05T03:01:33.349Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 12.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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