Free Image Hosting
Store and share file with temporary url.
A Next.js-based application that uses Pinata to store image files and MongoDB to store data. Images can be configured with different properties for optimization. Documents are deleted using a TTL index in MongoDB, and triggers-functions in MongoDB remove the corresponding files from Pinata
π Features
- Seamless Image Upload: File API to upload image.
- Signed Url: Signed Url to access image for limited amount of time.
- Optimized Performance: Leverages Pinata's Image Opimization for fast content delivery and enhanced user experience.
π Tech Stack
- Frontend: React, Next.js
- Backend: Next.js, Pinata API, MongoDb
- Styling: Bootstrap
- Hosting: Vercel
βοΈ Setup & Installation
-
Clone the Repository
git clone https://github.com/anshulnegitc/fimh.git cd fimh
-
Install Dependencies::
npm install
-
Environment Variables: Set up environment variables for Pinata API keys in a
.env.local
file(Place .env.local inside fimh folder):NEXT_PUBLIC_PINATA_JWT=your_api_key NEXT_PUBLIC_GATEWAY_URL=your_secret_key NEXT_PUBLIC_DATABASE_URL=your_mongo_connection_url
- β¦