Git Product home page Git Product logo

campjs-workshop's Introduction

Thinking with components

The idea with components is that you will package up HTML, CSS and JS together into a single re-usable module. This is different from how a lot of traditional front-end code is written. We don't have a giant folder full of JavaScript and another folder full of styles and hope they fit together.

Goals

  • How package management works in the browser
  • Component.io
  • Creating a simple component
  • Get away from building monolithic front-end libraries

Assumed Knowledge

  • Intermediate level of JavaScript experience
  • Basic level of CSS experience
  • Basic understanding of package managers
  • You know how to write a JSON file
  • Basic understanding of Git

If you're unsure about any of these topics go and do some basic reading before the workshop.

Requirements

You'll need a few things installed before attending the workshop so you can be ready to start straight away. If you can't get these installed there will be plenty of people available on the Friday that can help get you setup.

Node

You'll need node 0.10 installed. For both Mac and Windows you can get this from the node.js website.

Component

After node is installed, you need to install Component.

npm install -g component@~1

To check if this is installed run component --version on the command line. We're going to use the release candidate for this workshop.

Chrome

To keep the class consistent we'll be using chrome during the workshop. This isn't a hard requirement but it will make it easier if we're all using the same browser.

Are you using Windows?

Good luck. You might want to dual-boot or use a VM. I can't guarantee everything will work on Windows simply because we don't use them.

Reading

Here are some additional links for Thinking in Components:

Building Better Components

https://github.com/component/component/wiki/Building-better-components

One of the original articles written by TJ about Component.

SUIT CSS

https://github.com/suitcss/suit

Writing component-based CSS is also very, very important.

Component Guide

https://github.com/component/guide

Community-driven guide to using Component

Learn how to write component-based code for the browser using Component.io.

campjs-workshop's People

Contributors

anthonyshort avatar

Stargazers

曹文忠 avatar Hal Henke avatar Robert McNeil avatar

Watchers

Julian Gruber avatar Travis Jeffery avatar Prakash Durgani avatar david birdsong avatar James Cloos avatar Achille avatar Andrius Vaskys avatar Julien Fabre avatar George Wolf avatar Rakesh Nair avatar  avatar Gurdas Nijor avatar  avatar Karthick Sriraman avatar  avatar Niels avatar  avatar Sam Johnson avatar  avatar  avatar Sherry Chao avatar Jenn Boyce avatar Michael Phillips avatar Christopher Albanese avatar Brent Summers avatar Alex Noonan avatar Teresa Nesteby avatar Chris Nixon avatar  avatar  avatar Zeb avatar Liz Hartmann avatar Arlen McCluskey avatar  avatar Ian Muceus avatar  avatar Emilio Gomez Lavin avatar  avatar Kate Flaming 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.