HazemMeqdad / cdn

images & videos host api with simple panel to upload files

Home Page:https://cdn.hazemmeqdad.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cdn

You can upload your images & videos & other files to your server and use the interface & api. I know the forntend is trash but this i can do

Pages

  • / - home page
  • /logout - logout page
  • /auth - redirect to github auth page
  • /github/callback - redirect from github to website and it call github api to fetch user
  • /upload - has two methods. GET the interface of upload page. POST is api to upload files
  • /files - open your files
  • /files/:file - has two methods. GET method open file. DELETE method to delete file using api
  • /f/:file - open file
  • /d/:file - download file
  • /files/:file/public - PATCH method to change visible of file

Installation

Running on localhost (Testing mode)

make sure you are create .env file and config the porject

npm i
node .

Running using docker (recommended)

make sure you are create .env file and config the porject and setup mongodb configration

docker compose build
docker compose up -d

Images

notice: If this images doesn't open maybe the host was broken

About

images & videos host api with simple panel to upload files

https://cdn.hazemmeqdad.com

License:MIT License


Languages

Language:JavaScript 50.3%Language:CSS 26.4%Language:EJS 22.9%Language:Dockerfile 0.3%