Coder Social home page Coder Social logo

xiaolinlu / meteor-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from differential/meteor-boilerplate

0.0 2.0 0.0 1.86 MB

Boilerplate meteor app - starting point for meteor apps

Home Page: http://github.differential.io/meteor-boilerplate/

meteor-boilerplate's Introduction

meteor-boilerplate

A starting point for meteorjs applications, includes Iron Router, Bootstrap 3, Font Awesome, LESS and Coffeescript.

What's included

Installation

Make sure you have Meteor and Meteorite installed, and then clone locally and run with mrt

File structure

We have a common file structure we use across all of our meteorjs apps. The structure keeps view-dependent files together (.html, .less, .coffee).

.meteor
client
  ├── accounts
  ├── compatibility
  ├── router
  └── stylesheets
    └── lib
      ├── bootstrap.css
      └── font-awesome.css
    ├── global.less
    ├── mixins.less
    └── variables.less
  └── views
    └── dashboard
      ├── dashboard.html
      └── dashboard.less
    └── home
      ├── home.html
      ├── home.less
      └── home.coffee
    ├── footer.html
    ├── header.html
    ├── index.html
    └── loading.html
collections
  └── user.coffee
packages
public
  ├── fonts
  └── favicon.ico
server
  ├── views
  ├── accounts.coffee
  └── publications.coffee

Responsive LESS Variables

Includes 4 LESS variables to make responsive design super easy. Each variable (xs, sm, md, lg) coincides with Bootstrap media queries.

h1 {
  font-size: 24px;

  @media @lg {
    font-size: 36px;
  }
}

Search Engine Optimization

Search engines rely on <title> and <meta> tags to read page titles and descriptions. You can specify these for each page in your app by including the following in the corresponding page's .coffee file. (Sample included in home.coffee)

Tempate.home.rendered = ->

  document.title = "My New Meteor App"
  $("<meta>", { name: "description", content: "Page description for My New Meteor App" }).appendTo "head"

meteor-boilerplate's People

Contributors

ryw avatar hellogerard avatar queso avatar cfly15 avatar spencercarli avatar musgravejw avatar bitdeli-chef avatar christianbundy avatar dandv 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.