Skip to content

A simple, yet functional, image file upload and preview

Notifications You must be signed in to change notification settings

samhk222/brandboom-imagepreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi there, this repo is regarding the job offer @ https://stackoverflow.com/jobs/204945/lead-full-stack-developer-brandboom

How to test it online

Go to http://samuca.com/brandboom-imagepreview/ and simple use the application. Drag and drop one image to the body of the page, to see it in action.

How to install

1. Clone this repo into your www directory

cd /var/www/html/ [enter]
git clone https://github.com/samhk222/brandboom-imagepreview.git

2. Rename .env.dist to .env and change the database parameters

  • DB
  • DB_USER
  • DB_HOST
  • DB_PASS You don't need to change the DSN!

3. Create the database and import the following script

CREATE TABLE `images` (
  `image_id` INT NOT NULL AUTO_INCREMENT,
  `filepath` VARCHAR(255) NULL,
  `created_at` DATETIME NULL,
  PRIMARY KEY (`image_id`));

Or simple run the /config.php file, and it will be created (after following step 2)

3. Rename .env.dist to .env and change the database parameters

  • DB
  • DB_USER
  • DB_HOST
  • DB_PASS You don't need to change the DSN!

4. Chmod 777 the folders

  • src/files
  • src/files/thumbs sudo chmod 777 -R src/files src/files/thumbs

5. Access the site

Navigate to http://localhost/brandboom-imagepreview

5. Profit!

About

A simple, yet functional, image file upload and preview

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published