Last active
August 29, 2015 14:06
-
-
Save bdunnette/d54e8d0aebc9ac25120e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir -p client/compatibility client/styles client/lib client/views client/views/common lib server/lib public/images public/fonts .meteor | |
echo "local" > .meteor/gitignore | |
echo "meteor-platform\nautopublish\ninsecure\naccounts-base" > .meteor/packages | |
echo "[email protected]" > .meteor/release | |
echo "Router.configure({layoutTemplate: 'layout'}); Router.map(function() {this.route('home', {path: '/', template: 'home'});});" > client/routes.js | |
echo "<head><title>My App</title><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"></head><body></body><template name=\"layout\">{{>navbar}}<div class=\"container-fluid\">{{>yield}} </div></template>" > client/views/common/layout.html | |
echo "<template name=\"navbar\"><nav class=\"navbar navbar-default\" role=\"navigation\"><div class=\"container-fluid\"><div class=\"navbar-header\"><button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"\#bs-example-navbar-collapse-1\"><span class=\"sr-only\">Toggle navigation</span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span></button><a class=\"navbar-brand\" href=\"/\">My App</a> </div><div class=\"collapse navbar-collapse\" id=\"bs-example-navbar-collapse-1\"><ul class=\"nav navbar-nav navbar-right\">{{>loginButtons}}</ul></div></div></nav></template>" > client/views/common/navbar.html | |
echo "<template name=\"home\"><h2>Howdy!</h2></template>" > client/views/home.html | |
echo "Accounts.onLogin(function (users) {/* if there's only one user, add that user to admin group */if (Meteor.users.find().count() === 1) {Roles.addUsersToRoles(users.user._id, ['admin']);}});" > server/server.js | |
meteor add iron:router ian:bootstrap-3 ian:accounts-ui-bootstrap-3 alanning:roles mrt:accounts-admin-ui-bootstrap-3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment