PauloBoaventura / Limg

An image hosting service powered by Laravel

Home Page:https://limg.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limg

An open source image hosting service powered by Laravel

Build Status Total Downloads Latest Stable Version License


Features

  • Upload your image via file, url or ShareX !
  • Manage your image (custom title, public or private, delete, custom size...)
  • Custom Domain for ShareX upload (be sure to add a redirect from the new domain to the main domain)
  • Discord Webhook for every new image uploaded
  • Add image into an album (custom name, public or private, delete)
  • Backpack Admin Panel (ready to use)
  • Like System
  • Possibility to choose to generate shorter links for ShareX uploads
  • Public & Private API

Requirement

Installation

  • clone the repository: git clone https://github.com/Havenstd06/Limg
  • create a database
  • install: composer install
  • create configuration env file .env refer to .env.example
  • generate a new application key php artisan key:generate
  • setup database tables: php artisan migrate:fresh --seed (highly recommanded)
  • create storage link php artisan storage:link
  • install node_module npm i && npm run dev (or npm run prod)
  • Default username: Havens - Password : password (see database/factories/UserFactory.php & database/seeds/UsersTableSeeder)

Setup Discord Login

  • go on https://discordapp.com/developers/applications
  • create new application
  • copy CLIENT ID & CLIENT SECRET
  • paste on .env (CLIENT ID => DISCORD_KEY & CLIENT SECRET => DISCORD_SECRET)
  • go on OAuth2 page and add redirect link : https://YourApp.Domain/login/discord/callback
  • add this redirect link in .env => DISCORD_REDIRECT_URI

API

API endpoint

https://limg.app/api

Stats

  • /stats/global - Return the number of images, albums and users.

User

  • /user/{Username} - Return the user's public information.
  • /user/{Username}?{UserApiToken} - Return the user's private information (api key required).

Images

  • /images/public - Return all public images.
  • /images/id?{ImageID} - Return the image of the specified id (If public).
  • /images/id?{ImageID}?{UserApiToken} - Return the image of the specified id (If private) (api key required).

Upload

  • /upload - ShareX Compatible API.

Backpack Admin Panel

This software uses Backpack for Laravel as a dependency. So when you use this in production, you'll need a Backpack license. You can get a free non-commercial license here, but if your project is for commercial purposes you need to pay 69 EUR for a license.


If you have any problem or request open an issue.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

MIT

About

An image hosting service powered by Laravel

https://limg.app


Languages

Language:PHP 59.2%Language:Blade 40.6%Language:Shell 0.2%