Skip to content

Simple PHP and Node.js image uploader that creates a new webpage for an uploaded image.

Notifications You must be signed in to change notification settings

KonVision/bare-image-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

bare-image-api

Image uploader Api written in Node.js and PHP. By watching the upload directory, the JavaScript Code also creates a webpage for every image uploaded.

Installation

Web server

You need to run this on a web server like NGNIX in your var/www/your.domain directory.

Install Node.js packages

Since program is written in Node.js you need to have Node.js installed.

Installing chokidar in your terminal:

npm i chokidar

Running the project

Running the Node.js handler:

cd api
node handler.js

Your uploader should be available at your.domain/upload/upload.php.

Webpages should be created at var/www/your.domain/users/username/filename/filename as a HTML file.

About

Simple PHP and Node.js image uploader that creates a new webpage for an uploaded image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published