Code Monkey home page Code Monkey logo

html5-camera-experiment's Introduction

HTML5 Camera Experiment

An experiment to capture video on a HTML5 web app.

References

Development

  • This is a web app built on HTML5, JavaScript and CSS.
  • It uses Babel to transpile 'modern' ES6 code into 'current' (2016) JavaScript code.
  • It uses Webpack to bundle JS files together. (Important for making the transpiled ES6 'import' functionality work.)
  • Its also uses Stylus to make writing CSS easier.
  • Developing the web app requires Node.js installed on your machine and a handy command line interface. (Bash, cmd.exe, etc)
  • However, the compiled web app itself can be run simply by opening the index.html in a web browser. (Chrome, Firefox, etc)

Project anatomy:

  • Source JS (ES6 JavaScript) and STYL (Stylus CSS) files are in the /src folder.
  • Compiled JS and CSS files are in the /app folder.
  • Media assets are meant to be placed in the /assets folder, but this is optional.
  • Entry point is index.html.

Starting the project:

  1. Install the project dependencies by running npm install
  2. Run npm start to start the server.
  3. Open http://localhost:3000 on your browser to view the app.

Alternatively, there's a developer mode:

  1. npm install
  2. npm run dev
  3. http://localhost:3000
  4. Changes to the JS and STYL files will now be compiled automatically; i.e. Babel/Webpack and Stylus now watch the files. Refreshing the browser window should should show the latest edits.

html5-camera-experiment's People

Contributors

shaunanoordin 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.