m-oniqu3 / express-multer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uploading Images to Supabase using Express.js, Multer and Vue.js

The project demonstrates how to upload images to Supabase using Express.js, Multer and Vue.js.

Setting up Environment Variables

Client

Create a .env file in the root of the client folder. Add the following variables to the .env file:

VITE_SERVER_URL=http://localhost:3001
VITE_SERVER_API_PATH=/api

Server

Create a .env file in the root of the server folder. Add the following variables to the .env file:

PORT=3001

SUPABASE_PROJECT_URL=https://yourprojecturl.supabase.co
SUPABASE_ANON_KEY=someanonkey

Running the Project

Client

cd client
npm install
npm run dev

Server

cd server
npm install
npm run dev

About


Languages

Language:TypeScript 39.7%Language:CSS 28.3%Language:Vue 27.5%Language:HTML 4.5%