Skip to content

Latest commit

 

History

81 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react photo gallery is a private/personal photo gallery app.

Demo:

Here is a working live demo: https://sad-mestorf-f1ac6b.netlify.app/

Desktop & Mobile Friendly:

Upload Page

Gallery Page

Motivation

  • I've had experience using an image uploader library such as React-file-base64 and I wanted to build a custom built image uploader using just javascript, multer and react components.

Build with:

  • React Redux
  • Axios
  • Express
  • Node.js
  • mongoDB/mongoose
  • Multer
  • Moment.js
  • JWT
  • React-Google-Login-Lite
  • Google-Auth-Library
  • Nodemailer
  • React-Bootstrap
  • Adobe Photoshop and Sparks for logo.
  • Heroku for backend deployment.
  • Netlify for frontend deployment.

Features:

  • Custom built image uploader from desktop or mobile device. Currently works with .jpg only.
  • Delete image from gallery.

Bugs:

  • Google Login and Login doesn't work.

Had CORS issue: "cors policy: response to preflight request doesn't pass access control check: no 'access-control-allow-origin' header is present on the requested resource."

So I added custom preflights for each route. For example:

The above code seemd to solve the cors issue, but I don't recieve a successful login message and the app fails to redirect to home after logging in.

Note: For purposes of a partial working demo. I've included links to the upload and gallery in the main nav before login when typically these would only be accessible after successfully logging in.

Roadmap:

  • Fix JWT and Google Login.
  • Fix redirect after user logs in.
  • Expand image uploader to include .png and .gif files.
  • Create custom share button for images. Giving the user the ability to securely share an image with another user.

Authors:

Ryan Fogle

License

MIT

About

personal photo gallery

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages