Skip to content

A simple rest api to upload files and return a file to host assets as cdn for tastybox.

Notifications You must be signed in to change notification settings

othastudio/tbx-file-uploader

Repository files navigation

Tastybox Logo

License

About

This API provides a seamless solution for uploading and retrieving images within your projects. Developed using Node.js, Express, and Multer, it simplifies the process of handling image uploads and enables effortless integration into both monolithic and microservices architectures.

tastybox-file-uploader

Key Features

  • Effortless Image Upload: Upload images in various formats (JPEG, PNG, GIF) with ease using Multer.
  • Automatic Link Generation: Each uploaded image is assigned a unique link for easy retrieval across platforms.
  • Flexible Integration: Integrate the API into your monolithic or microservices projects seamlessly.
  • CDN-like Functionality: Leverage the API as a Content Delivery Network (CDN) or cloud service for efficient image delivery.
  • Scalable and Robust: Built with Node.js and Express, the API is designed to handle high volumes of uploads and retrieval requests.
  • Developer-Friendly: Well-documented API with a user-friendly interface for quick integration into your projects.

Installation

  1. Clone the repository: https://github.com/othastudio/tastybox-file-uploader.git
  2. Navigate to the project directory: cd tastybox-file-uploader.git
  3. Install the dependencies: npm install

Usage

  1. Start the API server: npm run start or npm run dev
  2. Make HTTP POST requests to the /upload endpoint with your image files.
  3. Retrieve the generated image links from the API response. http://localhost:8000/images/image-218387123.png as json response.
  4. Store the image links in your database or use them directly in your applications.

Contributing

Thank you for considering contributing to the Tastybox The Contributors can be found below:

Othmane N. | Senior Full-stack developer Developer

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or inquiries, please reach out to us at hello@otha.studio.


About

A simple rest api to upload files and return a file to host assets as cdn for tastybox.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published