Code Monkey home page Code Monkey logo

meteor-boilerplate's Introduction

meteor-boilerplate

This boilerplate is here to give you a simple starting point for your meteor projects.

# Assuming meteor is already installed
$ git clone https://github.com/matteodem/meteor-boilerplate.git
$ cd meteor-boilerplate
$ meteor npm install
$ meteor npm start

Read through the GUIDE.md or checkout the boilerplate online for more information.

meteor-boilerplate's People

Contributors

besublime avatar dandv avatar dhamaniasad avatar johnbrett avatar madsn avatar matteodem avatar oztk avatar rafaelbeckel avatar smt avatar timstott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-boilerplate's Issues

Router package in smart.json?

Given that you're using iron-router, do you still want to have the 'router' package in the smart.json?

Really like the CLI, by the way!

findOne of undefined

TypeError: Cannot call method 'findOne' of undefined
at loadUser (app/server/startup/loadUsers.js:3:47)

clean checkout, followed instructions.

User management example in boilerplate.

The readme says accounts-password & accounts-ui are included but I do not see any sign-up or login pages. Where can I find instructions on how to create and integrate these?

npm package

project looks great but downloading and unzipping seems a bit clunky - is there a reason this cant be an npm package (I guess not a meteor package since you have the console?)

handlebar-helpers cloned as meteor-handlebar-helpers

installing the repo under packages, meteor-handlebar-helpers is not recognized until renamed to handlebar-helpers

C:\ae\aembp>meteor
[[[[[ C:\ae\aembp ]]]]]

=> Started proxy.
=> Started MongoDB.
iron-router: updating npm dependencies -- connect...
=> Errors prevented startup:

While building the application:
error: no such package: 'handlebar-helpers'
error: no such package: 'iron-router-progress'
error: no such package: 'semantic-ui'
error: no such package: 'collection2'
error: no such package: 'velocity-html-reporter'
error: no such package: 'mocha-web-velocity'

While building package iron-router:
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: 'iron'
error: no such package: 'cmather'
error: no such package: '[email protected]'

=> Your application has errors. Waiting for file change.
Terminate batch job (Y/N)? y

C:\ae\aembp>meteor
[[[[[ C:\ae\aembp ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building the application:
error: no such package: 'iron-router-progress'
error: no such package: 'semantic-ui'
error: no such package: 'collection2'
error: no such package: 'velocity-html-reporter'
error: no such package: 'mocha-web-velocity'

While building package iron-router:
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: '[email protected]'
error: no such package: 'iron'
error: no such package: 'cmather'
error: no such package: '[email protected]'

=> Your application has errors. Waiting for file change.

Support for coffeescript?

Looks great. Any plans to support coffeescript? This would be doubly awesome in the console tool.

Thanks for releasing awesome software.

PS> Apologies if you already support it, couldn't find anything in the docs or issues, and I didn't install it to test...

Jade / Stylus support

Hi, I think this boilerplate has very good concepts.
Is there a possibility of supporting jade / stylus with the orion generators?

Change boilerplate script

  • Make it a node js file (multi OS compatible)
  • Add possibility to reset files to a "factory" reset
  • private/config.yml for options, such as using coffeescript etc

loadFixture howto

I'm having trouble figuring out how to use the loadFixture function to load some data. Can you provide a working example?

I tried uncommenting the loadFixture function call in loadFixtures.js:

Meteor.startup(function () { 
    loadFixture(Fixtures['dummyFixture'], dummyCollection);
});

But no collections have been defined yet I get this error ReferenceError: dummyCollection is not defined.

In the root of my project I tried to create one using ./meteor-boilerplate create:model dummyCollection but I still get dummyCollection is not defined.

Looking at model/dummyCollection.js:

DummyCollection = new Meteor.Collection2('dummyCollection', { 'schema' : {} });

I tried changing the loadFixture function to DummyCollection but then I get Error: Method not found [404].

Can you show me how to use loadFixture() to correctly load the dummyFixture data?

Thanks!

Social Login buttons

Hi,

I added the accounts-facebook and accounts-google packages and the sign-in buttons for the social networks showed up on the login and signup pages respectively. But when you click on the buttons nothing happens.

How can the social accounts be configured?
A little help will be appreciated.
Thanks,
Praney

error: no such package

downloaded zip file from here: http://matteodem.github.io/meteor-boilerplate/
Windows 8.1
Unzip and run shows the following:

C:\ae\aembp>meteor
[[[[[ C:\ae\aembp ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building the application:
error: no such package: 'handlebar-helpers'
error: no such package: 'iron-router'
error: no such package: 'iron-router-progress'
error: no such package: 'semantic-ui'
error: no such package: 'collection2'
error: no such package: 'velocity-html-reporter'
error: no such package: 'mocha-web-velocity'

=> Your application has errors. Waiting for file change.

typo in the readme file for installation

Should 'mrt install' be replaced with 'mrt add' and 'meteor' be replace with 'meteor-boilerplate' ?

# If meteor and meteorite are already installed
cd /path/to/project/
mrt install meteor

Example collection2 schema

I'm reading the latest docs on collection2 and it talks about a global schema object which in turn gets added to each collection like Foo.attachSchema(Schema.Foo). I'm not clear how this would work with many files inside a models/ directory. Any chance you want to add something to the models/default.js showing your approach?

PS> Thanks again for awesome software ๐Ÿ‘

File Naming Conventions

Realizing this is a matter of taste and not fact, wondering how married you are to the file and collection naming conventions?

The Meteor project itself, and the Telescope project (by the authors of "Discover Meteor"), largely use lowercase_filenames_separated_by_underscores.foo for filenames. For collections, the exported global var is by convention uppercase, but the filename and the collection itself (in Mongo) are lowercase. Here's an example from Meteor's Leaderboard demo:

Players = new Meteor.Collection("players");

And a filename from Telescope:

notification_item.js

Again, I realize these are matters of taste but if you don't already have a strong opinion here, then it may be helpful to go with the Meteor standard.

Iron - Router MRT error

Hello,

Whenever i try to add an atmosphere package via mrt, i get an error about conflicting versions of the iron-router package. The exact error is

Problem installing iron-router
  โœ˜ [0.6.1] conflicts with [0.6.2]
Can't resolve dependencies! Use --force if you don't mind mrt taking a wild guess and running your app anyway.

If i decide to do what the error suggest (-force), the installation works but still errors, was there anything in the smart.json that looks for this particular version ?

application is crashing

After download and save files to a folder I try to start meteor, but after initialising mongoDB it shows an Error.

=> Exited with code: 8
ReferenceError: Router is not defined
=> Your application is crashing. Waiting for file change.

Security Concern: Allow/Deny rules in /model folder

I am using this boilerplate for my project and I noticed the allow/deny rules are defined in the model and exposed to the client. Example

 Default.allow({
   insert : function () {
     return false;
   },
   update : function () {
     return false;
   },
   remove : function () {
     return false;
   }
 });

Isn't this going to cause a problem since business logic could potential be there and docs.meteor.com explicitly says to define them on the server ?

http://docs.meteor.com/#deny
http://docs.meteor.com/#allow

Restructurize Stylesheets

  • Remove content.less
  • Move elements.less to lib/elements.less
  • Add responsive less variables to variables.less
  • Remove less files when using "create:view" (since styles shouldn't be view dependant)

Harmony

Hi

mquandalle did not update harmony for quite some time and is running very old version of traceur. This package tomi:es6 runs the latest version and shall be updated often since it runs well with velocity.

Regards

adding a favicon

Added this to client/views/common/head.html
and put the favicon into /public

<head>
  <title>...loading</title>
  <link rel="icon" sizes="16x16 32x32" href="/favicon.ico?v=2">
  <link href='http://fonts.googleapis.com/css?family=Glegoo|Fauna+One' rel='stylesheet' type='text/css'>
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
</head>

Include debug handlebars helper?

Handlebars.registerHelper('debug', function (optionalValue) {
    console.log("Current Context");
    console.log("====================");
    console.log(this);
    if (optionalValue) {
        console.log("Value");
        console.log("====================");
        console.log(optionalValue);
    }
});

usage: {{ debug }} or {{ debug val }}

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.