Giter VIP home page Giter VIP logo

atomify-backbone-example's Introduction

Atomify Backbone Example App

Description

This is a simple example app to show off what a atomify app might look like. If you want to try it out yourself:

git clone [email protected]:Techwraith/atomify-backbone-example.git
cd atomify-backbone-example
npm install
node server.js
open http://localhost:3000

App structure

The app should be pretty easy to get around in the basic structure looks like this:

ui/
|-entry.js
|-entry.css
static/
node_modules/
index.html
server.js

server.js

Serves the app on these routes

  • /: serves up index.html
  • /bundle.js: serves the bundled js
  • /bundle.css: serves the bundled css
  • /*: serves up any static files in static

ui/entry.js

Is the entry point for the Atomify bundled js. This just uses browserify under the hood, so require modules like you normally would. If you'd like to reuire a handlebars template, do that like: require('template.html.hbs').

ui/entry.css

Is this entry point for the Atomify bundled css. This uses npm-css and rework under the hood.

You'll notice that some variables were injected into the css in server.js, you can use those like: color: var(variableName);.

Any css in an @import statement will be inlined. If the text passed into the @import statement is a module name or a directory, it's style is imported.

Any module loaded this way needs to either have an index.css file in it's root or a style property in it's package.json.

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.