Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hazemmeqdad/cdn
images & videos host api with simple panel to upload files
https://github.com/hazemmeqdad/cdn
api cdn expressjs host image-host nodejs
Last synced: 12 days ago
JSON representation
images & videos host api with simple panel to upload files
- Host: GitHub
- URL: https://github.com/hazemmeqdad/cdn
- Owner: HazemMeqdad
- License: mit
- Created: 2022-12-24T13:51:59.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T23:11:59.000Z (4 months ago)
- Last Synced: 2024-07-10T03:11:49.093Z (4 months ago)
- Topics: api, cdn, expressjs, host, image-host, nodejs
- Language: JavaScript
- Homepage: https://cdn.hazemmeqdad.com
- Size: 144 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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