Coder Social home page Coder Social logo

image-gallery-webcomponents's Introduction

Image Gallery

This code demonstrates image gallery build without any framework, but solely on HTML5 Web components and vanilla javascript

Running the application

$ git clone https://github.com/ranwahle/image-gallery-webcomponents.git
$ npm install
$ npm start

browse http://localhost:3000 (3000 is the default port, it may change with env variables)

Tech stack

Server side

Express

Client side (under ./public folder)

  1. Pure HTML, javascript & CSS
  2. Fontawesome icons

Implementation

Because server side was not the main issue for this demo, the images are actually stored in the server memory. It gives us persistence between refreshes, however, all data are lost when the server is restarted.

On the client side we've divided to components

  1. Image gallery component
  2. Add image compoennt: Contains a form to add the image
  3. Small image component: Present image in grid layout (image & title)
  4. Detailed imege component: Present real size image with title, description and date properties. Also provides mechanism to change the title and delete the image

image-gallery-webcomponents's People

Contributors

ranwahle avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.