Giter Club home page Giter Club logo

meteor-boilerplate's Introduction

meteor-boilerplate

A starting point for MeteorJS applications. Includes iron-router, Bootstrap 3, Font Awesome, LESS and more.

Included Packages

Installation

  1. Clone this repo to <yourapp>

git clone https://github.com/Differential/meteor-boilerplate.git <yourapp>

  1. Remove .git

cd <yourapp> && rm -rf .git

  1. Start coding!

File Structure

We have a common file structure we use across all of our Meteor apps. Client-only files are stored in the client directory, server-only files are stored in the server directory, and shared files are stored in the both directory. The private and public directories are for either private or public assets.

Bootstrap and LESS

The majority of Bootstrap can be customized with LESS variables. If you look in client/stylesheets/base/lib/bootstrap/variables.import.less you will see a slew of configuration variables that can be tweaked to drastically change the look and feel of your site without having to write a single line of CSS.

However we should avoid modifying the core Bootstrap Less files (in case we want to update them later), and should instead override the variables in our own LESS files.

For example, to change the color of all primary buttons and links, simply add a @brand-primary variable to stylesheets/base/variables.import.less:

// variables.import.less
@brand-primary: #DC681D;

If you'd like to override a feature of Bootstrap that can't be modified using variables, simply create a new file in the client/stylesheets/components directory named after the corresponding Bootstrap component (eg. buttons in this case), and make your changes there.

// buttons.import.less
.btn {
  text-transform: uppercase;
}

After your file is ready, you need to import it into client/stylesheets/base/global.less. So, you would add in this statement:

@import '@{components}/buttons.import.less';

The reason that this is done is to avoid any issues when the LESS files are compiled into CSS. That way, if one component relies on another or you want a certain order for your components, you can avoid any issues.

SEO

Page titles, meta descriptions and Facebook and Twitter meta tags are handled by the yasinuslu:blaze-meta package. Global settings are configured in both/router/meta.js, while individual page settings are set at the controller level.

  • Note: the spiderable package will need to be installed and configured on your server in order for bots to read your meta tags.
PostsShowController = AppController.extend({
  path: '/posts/:_id',
  waitOn: function() {
    return this.subscribe('post', params._id);
  },
  data: function() {
    return {
      post: Post.find({_id: params._id})
    };
  },
  onAfterAction: function() {
    if(this.ready()) {
      Meta.setTitle(this.data().post.title);
    }
  }
});

Favicons and Touch Icons

Upload your image to http://realfavicongenerator.net/ and place the resulting images in public/images/favicons

Seed Data

You can use the dburles:factory and anti:fake packages to generate fake collection data for testing your UI. See server/seeds.js for an example:

Meteor.startup(function() {

  Factory.define('item', Items, {
    name: function() { return Fake.sentence(); },
    rating: function() { return _.random(1, 5); }
  });

  if (Items.find({}).count() === 0) {

    _(10).times(function(n) {
      Factory.create('item');
    });

  }

});

meteor-boilerplate's People

Contributors

bitdeli-chef avatar cfly15 avatar christianbundy avatar dandv avatar foysalit avatar hellogerard avatar musgravejw avatar queso avatar rgoomar avatar rootedsoftware avatar ryw avatar spencercarli avatar ssteinerx avatar xxronis 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-boilerplate's Issues

iron-router not working

Hi,

When I try to add a route "bar" to routes.coffee but the router doesn't pick it up and give message:
"Oops, this page can't be found"

No other errors reported in firefox debugger
Meteor release: 0.8.1.1

--> routes.coffee
Router.map ->
@route 'home',
path: '/'

@route 'dashboard',
path: '/dashboard'
onBeforeAction: ->
AccountsEntry.signInRequired(@)
@route 'notFound',
path: '*'
where: 'server'
action: ->
@response.statusCode = 404
@response.end Handlebars.templates'404'

added

@route 'bar',
path: '/bar'
data: ->
Meteor.user()
onBeforeAction: ->
AccountsEntry.signInRequired(@)

--> /client/views/bar/bar.html

<p">Test template bar


Any ideas? Got stuck here !
thx
Fret Benny

Failed to receive keepalive! Exiting

Everytime I update the variables I get something like this in the server:

=> Client modified -- refreshing
I20141214-03:55:11.281(8)? Failed to receive keepalive! Exiting.
=> Exited with code: 1
=> Meteor server restarted

Error or page load

After simply cloning the latest meteor-boilerplate and running mrt successfully, I get the following error at http://localhost:3000 in Chromium (Ubuntu 13.10):

meteor-boilerplate-error

I'm guessing the first error with headers.js causes all of Meteor to fail to load, causing the other errors. I didn't have any such problem with an older version of meteor-boilerplate from about a month ago.

I am new, from Laravel Framework (PHP)?

I would like to create multiple modules or sub project in the same root.
Ex: I have 3 projects is Cpanel, Loan and Saving System, that its have own structure like route, collection, template.....
Please help me for the structure for this????????????

blaze-meta config shouldn't be inside Meteor.startup

The config code in both/router/meta.js shouldn't be wrapped in Meteor.startup. If it is, I need to run setTitle again to update title. If I DON'T run setTitle anywhere, the title will be "Default Title" - despite my custom title in meta.js

(Hope I'm making myself clear.)

[SOLVED] Strange behavior of buttons on materialize branch

There seems to be a bug in the way waves-effects work on buttons

If you click'em multiple times (or click and rapidly hover out) multiple waves will be applied. The button becomes lighter and lighter in color but it doesn't go back to the previous original shade.

If you click and wait (hover) until the wave finishes then it works.

I've also noticed that if you only hover the button without clicking, the shade is restored, level by level, until the original color of the background is applied.

You can check it out here:
ezgif com-crop
(don't know if animated gifs work on github :D)

or here:
http://giphy.com/gifs/3oEduRE4sMHjCTfGso

Update:
With a fresh meteor created app and the materialize:materialize package this behavior isn't noticed.

Glyphicons font missing

Looks like the font files are not included:

  • glyphicons-halflings-regular.eot
  • glyphicons-halflings-regular.svg
  • glyphicons-halflings-regular.ttf
  • glyphicons-halflings-regular.woff

I added the files to /public/fonts but the problem with this is, they are referenced per ../fonts/... in bootstraps CSS file, so the Browser tried to fetch it from /client/stylesheets/fonts

I didn't want to modify the original CSS. Adding your own CSS with fixed paths works, but will always produce 404 errors from the original rules.

@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('/fonts/glyphicons-halflings-regular.eot');
  src: url('/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('/fonts/glyphicons-halflings-regular.woff') format('woff'), url('/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('/fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}

So I implement a redirect into the iron router.

  @route 'fonts',
    path: '/client/stylesheets/fonts/glyphicons-halflings-regular.:extension(*)',
    where: 'server',
    action: -> 
      @response.writeHead(301, {'Location': '/fonts/glyphicons-halflings-regular.' + this.params})
      @response.end

Downside of this is of course an additional http connection and latency. But I felt it is better as changing package code or reading the font on serverside and passing it through.

Not able to start app - plugin missing?

Hello:

I was curious to check this out and just cloned the repo. Upon running "meteor," I get this:

W20150311-10:03:54.256(-4)? (STDERR) Error: No plugin found named "ensureSignedIn"
W20150311-10:03:54.256(-4)? (STDERR)     at Function.Router.plugin (packages/iron:router/lib/router.js:394:1)
W20150311-10:03:54.256(-4)? (STDERR)     at app/both/router/routes.js:9:8
W20150311-10:03:54.257(-4)? (STDERR)     at app/both/router/routes.js:13:3
W20150311-10:03:54.257(-4)? (STDERR)     at /Users/nbrown/Source/slideout/.meteor/local/build/programs/server/boot.js:205:10
W20150311-10:03:54.257(-4)? (STDERR)     at Array.forEach (native)
W20150311-10:03:54.257(-4)? (STDERR)     at Function._.each._.forEach (/Users/nbrown/.meteor/packages/meteor-tool/.1.0.40.1gilgv1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150311-10:03:54.257(-4)? (STDERR)     at /Users/nbrown/Source/slideout/.meteor/local/build/programs/server/boot.js:116:5

Any ideas?

Cintrifuse info in boilerplate

Just downloaded a new version of boilerplate and it looks like some info from Cintrifuse's site made it into the boilerplate

Sorting Collections on the Client

I am having some difficulty sorting collections with sorting collections on the client.

With the vanilla meteor-boilerplate code, how would one perform a natural sort on the default Items collection?

Should be something like: Items.find({}, {sort: {'$natural': -1}});
but I have been unable to get this to work by modifying any of the obvious client code.

I've even experimented a bit with /meteor-boilerplate/both/controllers/dashboard.js:5 to no avail.

Am I missing something with the collection-related packages used by meteor-boilerplate?

Thanks in advance.

Example schema

Would be awesome if there was an example SimpleSchema in the boilerplate. I might try to put together a pull request if I get a chance.

featurerequest

'before' is deprecated

I get a bunch of messages on each code reload: (this is after I've replaced before with onBeforeAction in config.coffee)

=> Started MongoDB.     
W20140406-21:49:38.375(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:49:38.445(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:49:38.445(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:49:38.446(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:49:38.446(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
=> Started your app.

=> App running at: http://localhost:3000/
W20140406-21:55:11.939(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:55:11.940(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:55:11.941(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:55:11.941(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
W20140406-21:55:11.942(2)? (STDERR) <deprecated> [RouteController] 'before' is deprecated. Please use 'onBeforeAction' instead.
=> Meteor server restarted

Windows Errors

Hi,
I wanted to try your boilerplate example (looks great, ty!) on windows but after I cloned it and ran meteor it throws a very cryptic error.

Any clues?
Here's a copy of the console session:

G:\Meteor Projects\meteor-boilerplate-differential>meteor
[[[[[ ~\G\Meteor Projects\meteor-boilerplate-differential ]]]]]

=> Started proxy.
Unexpected mongo exit code 100. Restarting.
=> Started MongoDB.
=> Errors prevented startup:

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: iron:router 1.0.9, was 0.9.4.
Constraints on package "iron:router":

  • iron:[email protected] <- top level

  • iron:[email protected] <- useraccounts:core 1.11.1 <- useraccounts:bootstrap 1.11.1

  • iron:[email protected] <- zimme:active-route 2.0.4_1 <- zimme:iron-router-active 2.0.1

    To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.

=> Your application has errors. Waiting for file change.
Terminate batch job (Y/N)?
^C
G:\Meteor Projects\meteor-boilerplate-differential>meteor --allow-incompatible-update
[[[[[ ~\G\Meteor Projects\meteor-boilerplate-differential ]]]]]

=> Started proxy.
=> Started MongoDB.

C:\Users\Paul\AppData\Local.meteor\packages\meteor-tool\1.1.3\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fibers\future.js:245
throw(ex);
^
SyntaxError: Unexpected token

G:\Meteor Projects\meteor-boilerplate-differential>

Settings access is doing it wrong

The idea is that each setting has a key, and the correct settings file (or JSON) is passed in at process startup time, so your code would only contain

Meteor.settings.public.meta.title

not

Meteor.settings[Meteor.settings.environment].public.meta.title

It's seldom that production and dev settings ought to be in the same file anyway, since you don't want to check in prod settings to source control anyway.

Upgrade to latest packages?

Hi,
I just cloned meteor-boilerplate and ran meteor update. There were 16 package upgrades, including some with backwards incompatible changes:

dburles:collection-helpers         upgraded from 1.0.0 to 1.0.2
fuatsengul:iron-router-auth        upgraded from 1.0.0 to 1.0.7
iron:controller                    added, version 1.0.6
iron:core*                         upgraded from 0.3.4 to 1.0.6
iron:dynamic-template*             upgraded from 0.4.1 to 1.0.6
iron:layout*                       upgraded from 0.4.1 to 1.0.6
iron:location                      added, version 1.0.6
iron:middleware-stack              added, version 1.0.6
iron:router*                       upgraded from 0.9.4 to 1.0.6
iron:url                           added, version 1.0.6
joshowens:accounts-entry*          upgraded from 0.9.0 to 1.0.3
joshowens:simple-form              upgraded from 0.2.0 to 0.2.2
manuelschoebel:ms-seo              upgraded from 0.3.0 to 0.4.1
matb33:collection-hooks            upgraded from 0.7.6 to 0.7.7
meteorhacks:zones                  upgraded from 1.3.2 to 1.4.0
mongo-livedata                     removed from your project
mrt:accounts-t9n                   removed from your project
reywood:publish-composite          upgraded from 1.3.0 to 1.3.5
schnie:uploader                    added, version 2.0.3
softwarerero:accounts-t9n          added, version 1.0.3
wizonesolutions:underscore-string  added, version 1.0.0
zimme:iron-router-active*          upgraded from 0.2.2 to 1.0.1

* These packages have been updated to new versions that are not backwards
compatible.

Should I merge the upgraded modules back to this repository?

Could i use this package on win 7?

Now i base on win 7, when i clone this repo and then i run meteor but it show error:

In order to resolve constraints, we had to use the following
experimental package versions:
  [email protected]  Wrapper around the bcrypt npm package


C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\meteor-t
ool-os.windows.x86_32\dev_bundle\lib\node_modules\fibers\future.js:206
                                                throw(ex);
                                                      ^
Error: ENOENT, no such file or directory 'C:\Users\Theara\AppData\Local\Temp\met
eor-temp-9pwozl\plugin.compileServerHandlebarsTemplates.os\packages\compileServe
rHandlebarsTemplates:plugin.js'
    at Object.Future.wait (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\dev_bundle\lib\node_modules\fib
ers\future.js:326:15)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:526:31
    at Array.forEach (native)
    at Function._.each._.forEach (C:\Users\Theara\AppData\Local\.meteor\packages
\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\dev_bundle\lib\node_modu
les\underscore\underscore.js:79:11)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:524:9
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:338:18
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:331:34
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:329:23
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at enterJob (C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.
36-win.0\meteor-tool-os.windows.x86_32\tools\buildmessage.js:303:26)
    at Object.forkJoin (C:\Users\Theara\AppData\Local\.meteor\packages\meteor-to
ol\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\buildmessage.js:501:3)
    at _.extend.downloadMissingPackages (C:\Users\Theara\AppData\Local\.meteor\p
ackages\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\tropohouse.
js:342:18)
    at _.extend.setVersions (C:\Users\Theara\AppData\Local\.meteor\packages\mete
or-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\project.js:766:41)
    at _.extend._ensureDepsUpToDate (C:\Users\Theara\AppData\Local\.meteor\packa
ges\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\project.js:242:
23)
    at _.extend.getVersions (C:\Users\Theara\AppData\Local\.meteor\packages\mete
or-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\project.js:536:10)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\commands.js:199:13
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:250:13
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:243:29
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:241:18
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:232:23
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at Object.capture (C:\Users\Theara\AppData\Local\.meteor\packages\meteor-too
l\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\buildmessage.js:231:19)
    at Command.doRunCommand [as func] (C:\Users\Theara\AppData\Local\.meteor\pac
kages\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\commands.js:1
98:31)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\main.js:1303:23
    - - - - -
    at Object.fs.openSync (fs.js:438:18)
    at Object.fs.readFileSync (fs.js:289:15)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\bundler.js:1530:18
    at Array.forEach (native)
    at Function._.each._.forEach (C:\Users\Theara\AppData\Local\.meteor\packages
\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\dev_bundle\lib\node_modu
les\underscore\underscore.js:79:11)
    at Function.JsImage.readFromDisk (C:\Users\Theara\AppData\Local\.meteor\pack
ages\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\bundler.js:150
6:5)
    at Object.exports.readJsImage (C:\Users\Theara\AppData\Local\.meteor\package
s\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\bundler.js:2323:1
8)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\isopack.js:648:28
    at Array.forEach (native)
    at Function._.each._.forEach (C:\Users\Theara\AppData\Local\.meteor\packages
\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\dev_bundle\lib\node_modu
les\underscore\underscore.js:79:11)
    at _.extend._loadUnibuildsFromPath (C:\Users\Theara\AppData\Local\.meteor\pa
ckages\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\isopack.js:6
45:7)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\tropohouse.js:292:17
    at Array.forEach (native)
    at Function._.each._.forEach (C:\Users\Theara\AppData\Local\.meteor\packages
\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\dev_bundle\lib\node_modu
les\underscore\underscore.js:79:11)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\tropohouse.js:291:9
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:338:18
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:331:34
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:329:23
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at Object.enterJob (C:\Users\Theara\AppData\Local\.meteor\packages\meteor-to
ol\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\buildmessage.js:303:26)
    at _.extend.maybeDownloadPackageForArchitectures (C:\Users\Theara\AppData\Lo
cal\.meteor\packages\meteor-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tool
s\tropohouse.js:274:18)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\tropohouse.js:345:14
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:507:23
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:338:18
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:331:34
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:329:23
    at _.extend.withValue (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:112:14)
    at enterJob (C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.
36-win.0\meteor-tool-os.windows.x86_32\tools\buildmessage.js:303:26)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:506:24
    at runWithEnvironment (C:\Users\Theara\AppData\Local\.meteor\packages\meteor
-tool\1.0.36-win.0\meteor-tool-os.windows.x86_32\tools\fiber-helpers.js:136:21)
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\fiber-helpers.js:143:14
    at C:\Users\Theara\AppData\Local\.meteor\packages\meteor-tool\1.0.36-win.0\m
eteor-tool-os.windows.x86_32\tools\buildmessage.js:519:11

Please help me.

Can we combine our boilerplates?

I also created one, the features currently are:

  • Comprehensible folder structure
  • TDD / BDD with laika
  • Multi page apps with iron-router
  • A way to load fixtures (as of now no external packages used for that)
  • meteor-boilerplate console tool, which helps on creating views, routes and so on

More info here: http://matteodem.github.io/meteor-boilerplate/

I'd love to team up or anything like that.

child process timed out error

I got this when I tried to install this boilerplate
I am on Ubuntu Gnome 14.04 and Meteor 0.8.1.1


sembrador@webdev:/webApp/Meteor/sisadmin$ meteor update
sisadmin: updated to Meteor 0.8.1.1.
sembrador@webdev:
/webApp/Meteor/sisadmin$ mrt

Stand back while Meteorite does its thing
✓ accounts-entry
branch: https://github.com/Differential/accounts-entry.git#master
✓ handlebars-server
branch: [email protected]:EventedMind/meteor-handlebars-server.git#master
child process timed out, no activity for 15 seconds

ERROR: null Command failed: Cloning into '/home/sembrador/.meteorite/source/[email protected]:EventedMind/meteor-handlebars-server'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

STDOUT:

STDERR: Cloning into '/home/sembrador/.meteorite/source/[email protected]:EventedMind/meteor-handlebars-server'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

/home/sembrador/.node/lib/node_modules/meteorite/lib/sources/git.js:124
throw "There was a problem cloning repo: " + self.url +
^
There was a problem cloning repo: [email protected]:EventedMind/meteor-handlebars-server.git

Please check https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING.md#troubleshooting for potential explanations.

I did a test to discard handlebars-server as the problem.

sembrador@webdev:~/webApp/Meteor$ mrt create test
test: created.

To run your new app:
cd test
meteor
sembrador@webdev:/webApp/Meteor$ cd test
sembrador@webdev:
/webApp/Meteor/test$ mrt add handlebars-server
✓ handlebars-server
tag: https://github.com/EventedMind/meteor-handlebars-server.git#v1.2.0

Done installing smart packages

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

handlebars-server: Allows handlebars templates to be defined on the server in .handlebars files
sembrador@webdev:~/webApp/Meteor/test$ mrt

Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

[[[[[ ~/webApp/Meteor/test ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/

Thanks in advanced for any help.

Subscriptions fail to load after `meteor update`

Steps to reproduce:

  • git clone [email protected]:Differential/meteor-boilerplate.git
  • cd meteor-boilerplate
  • meteor
  • Create an account, go to the dashboard, notice list of items
  • meteor update
  • Notice the dashboard now has no items

I think this is caused by either a change in IronRouter's API, or a bug in IronRouter introduced during the upgrade. I've had a dig into IronRouter and I can't figure out the issue. There were quite a lot of changes in iron:router from 1.0.7 to 1.0.9.

basic accounts template

I'm probably missing something basic here - being new to Meteor, but

  1. I can't seem to get accounts.ui.config recognized to require username within the template during registration

and

  1. I've added the Facebook and Twitter user accounts packages so that users could have the option to login with either - but nothing on the login screen changed.

this._id is not accessible to controller. How to get the id?

I have this in my dashboard.html

      {{#each todos}}
        <li class="list-group-item">
            {{ task }}
            <button class="delete"> Delete</button>
        </li>
      {{/each}}

and in the controller dashboard.js I have this

    DashboardController.events({
      'click .delete': function () {
        Meteor.call('ToDos.delete',this._id);
      }
    });

In a simple boilerplate I can access the id of the collection in the event using this._id but with this setup it has a null value. Any ideas how to get the id of the collection todo in the controller?

sendContactEmail

Love the template - great for a Meteor newby - which leads to my question (sorry if it's obvious but I couldn't find any documentation).

You provide a Mailgun config in Meteor startup and a 'sendContactEmail' method - but no description of how they are used? (Maybe this is obvious to a more experienced developer.) I also see some HTML templates.

I've setup a Mailgun account and will add my usename/password --- but how is this best used?
Does the template support email of forgotten passwords? Registration? etc.?

Any guidance would be appreciated.

mechanism to upgrade Bootstrap?

I need 3.3.2..
Did I do this correctly?
Replaced bootstrap.js in client/compatibility with the unminified one in the downloaded zip from the bootstrap website.
Removed the stylesheets/base/lib/bootstrap folder contents.
Replaced the above contents with the latest source.
Renamed all the '.less' files to '.import.less'
Did the same (made the import statements reference the new file names) inside bootstrap.import.less and mixins.import.less.

Seems to be working ... but I don't know what I'm doing as I'm new to Meteor!

Your template has been a big help!

P:)

Boilerplate setup leaves .meteor/.id unchanged

Not sure if this is an issue, but I'm trying out this boilerplate and am a little worried that my .meteor\.id will be identical to hundreds of other apps. Any best practices for generating a new one?

Otherwise, liking the setup so far. Thanks!

Outdated package? MUP issues

So this works fine on my local machine, but when it in minified and deployed using mup, it just displays the iron:router main page. Errors at the bottom include:

Uncaught TypeError: Cannot read property 'helpers' of undefined Uncaught TypeError: Cannot read property 'ServiceConfiguration' of undefined

Include testing methodology.

Being a new guy in Meteor ecosystem, I found this boilerplate really helpful to start with!

I am missing the testing methodology though. It would be nice to express your opinion about it.

No body rendering

Hi, thanks!

I downloaded this zip today, tried with blaze-rc0, 0.7.1.2, and 0.7.1.1. Console shows no errors in chrome on ubuntu, body is empty for /, dashboard.

$ node -v
v0.10.21
$ npm -v
1.3.26
$ mrt --version
Meteorite version 0.7.2
Release 0.7.1.2

What can I do to help you debug?

stack order of less files...?

hey, just trying to understand the automatic ordering of js/css/etc files in meteor, and i noticed in mtr-bp that less files under view folders like client/views/dashboard import stuff from client/stylesheets.

it seems like that would result in the stuff in client/stylesheets being pulled in twice, but i'm sure i just don't quite grok the auto-ordering yet.

can u provide any guidance around that?

regards,
tony.

404 error page

I just installed a fresh copy of this boilerplate and started it. When try to access a path which is not set I don't get a 404 page but a blank one and this error on the console:

Cannot call method '404' of undefined at route.action (./routes.coffee:13:6)

I haven't changed anything there. Any ideas?

Edit: This seems to be a Handlebars-Server problem. If I just give it any string instead of that Handlebars template it works. One more question: why to render the 404 page on the server, not on the client?

utf8 not working

Hi there! I love your file structure and the whole setup!
But I have problems to display utf8 symbols like ö,ä,ü,Ö,Ä,Ü.
When I create an app via meteor create <name> it's fine.

I use your boilerplate via the IntelliJ project wizard.

Do you have a clue?
Regards!

Meteor update breaks ensureSignedIn

Latest meteor update seems to break ensureSignedIn

Error: No plugin found named "ensureSignedIn"`
Router.plugin('ensureSignedIn', {
  only: ['dashboard']
});

meteor add useraccounts:iron-routing seems to fix it, see #291.

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.