Skip to content

Express APIs which uploads Images to Supabase and image URLs to Mongo

Notifications You must be signed in to change notification settings

divyanshu1810/supabase-to-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supabase To MongoDB

Description

This project is a web application developed using Express.js as the backend development framework. It provides functionalities for uploading images to Supabase buckets and storing the image URLs in MongoDB. The Multer library is utilized for handling the image uploads. The project uses PNPM as the package manager.

Features

Upload images to Supabase buckets Store image URLs in MongoDB Handle image uploads using Multer

Installation

Clone the repository:


git clone https://github.com/divyanshu1810/supabase-to-mongo.git

Install PNPM:


npm install -g pnpm

Install project dependencies using PNPM:

cd supabase-to-mongo
pnpm install

Configure environment variables:

Create a .env file in the root directory.

Add the following variables to the .env file:

SUPABASE_URL=your-supabase-url
SUPABASE_API_KEY=your-supabase-key
MONGODB_URI=your-mongodb-uri
SUPABASE_BUCKET_NAME=your-supabase-bucket-name
PORT=your-port

Start the application:


pnpm start

Technologies Used

  • Express.js: Backend web application framework
  • Supabase: Cloud storage service for image uploads
  • MongoDB: Database for storing image URLs
  • Multer: Middleware for handling multipart/form-data (image uploads)
  • PNPM: Package manager

Pictures

Postman

image

Supabase

image

MongoDB

image

URL

image

About

Express APIs which uploads Images to Supabase and image URLs to Mongo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published