Giter Site home page Giter Site logo

imageslider-codetest's Introduction

MASSIVE - Films Carousel React Component

Code test completed using React, CSS Modules, Babel/ES6 & Browserify One day this component will be exported as a vanilla React npm/yarn module, though more time will be needed to optomize responsivity & document the customizeable aspects of the components.

Input Materials:

The carousel serves film data & corresponding images placed in the ./data folder. When the npm run build script is executed, data/images is copied to public/ replacing the existing public/images directory (read below).
To get started, replace the contents of data/images with your images & also the./data/data.json file with your datamap in the following format:

{
	"carousel":[
		{
			"imageurl": "images/bike.png", 
			"title":"A Guy On A Bike", 
			"synopsis":"Lorem ipsum dolor sit amet", 
			"link": "www.good.com"
		},
		// ...
	]
}

How to run:

  • npm i Install node.js dependencies

  • npm run watch Watches for changes to js & css files in ./src folder & bundles to respective subdirectories in ./public. From here one can open public/index.js in their browser, reloading after any changes. **If your browser is sandboxed like mine, you'll need to start your own development server (eg. nodemon)

  • npm run build Uses browserify plugins to reduce file size, remove extraneous code, & inject backward-compatable css for older browsers, with bundles produced in the same locations as npm run watch.

  • npm start Starts a Python web server in ./public folder running on 0.0.0.0:8000

Author: @camcan ([email protected])

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.