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.
Upload images to Supabase buckets Store image URLs in MongoDB Handle image uploads using Multer
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