{"id":21994649,"url":"https://github.com/mahardikakdenie/cloud-api-imgbb","last_synced_at":"2026-04-10T23:03:58.572Z","repository":{"id":259593601,"uuid":"871660585","full_name":"mahardikakdenie/cloud-api-imgbb","owner":"mahardikakdenie","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-26T17:56:33.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T10:37:08.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahardikakdenie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-12T15:27:56.000Z","updated_at":"2024-10-26T17:56:36.000Z","dependencies_parsed_at":"2024-10-26T19:46:42.070Z","dependency_job_id":"a1bfe9c5-09cf-4ac1-8e10-e4e339e541b3","html_url":"https://github.com/mahardikakdenie/cloud-api-imgbb","commit_stats":null,"previous_names":["mahardikakdenie/cloud-api-imgbb"],"tags_count":0,"template":false,"template_full_name":"mahardikakdenie/express-ts-template-4.21.0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahardikakdenie%2Fcloud-api-imgbb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahardikakdenie%2Fcloud-api-imgbb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahardikakdenie%2Fcloud-api-imgbb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahardikakdenie%2Fcloud-api-imgbb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahardikakdenie","download_url":"https://codeload.github.com/mahardikakdenie/cloud-api-imgbb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052671,"owners_count":20553172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T21:09:56.885Z","updated_at":"2026-04-10T23:03:58.565Z","avatar_url":"https://github.com/mahardikakdenie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express - typescript - imgbb cloud\n\nA template for initializing a TypeScript project with Express version 4.21.0.\n\n**Created by Mahardika Kessuma Denie, this project is ideal for developers seeking a fast, scalable, and organized solution to incorporate imgbb cloud storage into their backend processes.**\n\n## Description\n\nThis repository serves as a starting point for building Node.js applications using TypeScript and Express (v4.21.0), specifically tailored for integrating with the imgbb image hosting API. It provides a clean and efficient structure to kickstart development, allowing you to easily implement image uploading functionality to imgbb cloud storage.\n\nWhether you're developing a web application that requires image handling or simply looking to streamline your backend processes, this template offers a flexible and scalable solution. Enjoy the power of TypeScript with the simplicity of Express, combined with seamless integration to imgbb for fast and secure image hosting.\n\n## Features\n\n- TypeScript: Ensures type safety and cleaner code.\n- Express 4.21.0: Lightweight, fast, and flexible web framework.\n- imgbb Cloud Integration: Preconfigured for easy image uploads to imgbb.\n- Pluggable database layer: Supports both MongoDB (default) and PostgreSQL.\n- Clear Project Structure: Simplifies code organization and scaling.\n- Environment Configuration: Setup for both development and production modes.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- [Node.js](https://nodejs.org/) (version 14 or newer)\n- [npm](https://www.npmjs.com/) (usually installed with Node.js)\n- imgbb API Key: You need to obtain an API key from [imgbb](https://api.imgbb.com) to enable image uploads.\n\n## Installation\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/mahardikakdenie/cloud-api-imgbb.git\n   ```\n\n2. Go into the project directory:\n\n   ```bash\n   cd cloud-api-imgbb\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n## Environment Setup\n\nAdd the required environment variables in your `.env` file:\n\n```bash\nPORT=\u003cyour_port\u003e\nIMGBB_API_KEY=\u003cyour_imgbb_api_key_here\u003e\n\n# Choose database driver: mongodb (default) or postgres\nDB_CLIENT=mongodb\n\n# MongoDB connection URI (required when DB_CLIENT=mongodb)\nDB_URI=\u003cyour_mongodb_uri\u003e\n\n# PostgreSQL connection URI (required when DB_CLIENT=postgres)\nPG_URI=\u003cyour_postgresql_uri\u003e\n```\n\n## Database options\n\n### MongoDB (default)\n- Set `DB_CLIENT=mongodb`\n- Set `DB_URI`\n\n### PostgreSQL\n- Set `DB_CLIENT=postgres`\n- Set `PG_URI`\n- Ensure PostgreSQL user has permission to create tables. On startup, the service auto-creates the `media` table if it does not exist.\n\n## Running the Project\n\n```bash\nnpm run dev\n```\n\n## Project Structure\n\n```bash\ncloud-api-imgbb\n│\n├── src/\n│   ├── controller/\n│   │   └── media_controller.ts\n│   ├── database.ts\n│   ├── interface/\n│   ├── libs/\n│   ├── middleware/\n│   ├── model/\n│   ├── repository/\n│   ├── routes/\n│   ├── service/\n│   └── index.ts\n├── README.md\n├── package.json\n└── tsconfig.json\n```\n\n## Contributing\n\n_If you would like to contribute to this project, please fork the repository and submit a pull request._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahardikakdenie%2Fcloud-api-imgbb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahardikakdenie%2Fcloud-api-imgbb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahardikakdenie%2Fcloud-api-imgbb/lists"}