Commit c8e69c4f0289bb2f9bd9d1ec52fbb656484858b7
1 parent
a8192b4dcb
Exists in
master
Reference latest Meteor version in README.md.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
1 | # The Meteor Chef - Base (@0.9.3) | 1 | # The Meteor Chef - Base (@0.9.3.1) |
2 | A starting point for Meteor apps. | 2 | A starting point for Meteor apps. |
3 | 3 | ||
4 | Base is the lazy person's starter kit for Meteor. It includes some commonly used packages (biased to The Meteor Chef) and code for common functionality. This is the starter kit for all Meteor Chef recipes. | 4 | Base is the lazy person's starter kit for Meteor. It includes some commonly used packages (biased to The Meteor Chef) and code for common functionality. This is the starter kit for all Meteor Chef recipes. |
5 | 5 | ||
6 | ### Packages Included | 6 | ### Packages Included |
7 | - Accounts (Base) - `meteor add accounts-base` | 7 | - Accounts (Base) - `meteor add accounts-base` |
8 | - Accounts (Password) - `meteor add accounts-password` | 8 | - Accounts (Password) - `meteor add accounts-password` |
9 | - Audit Argument Checks - `meteor add audit-argument-checks` | 9 | - Audit Argument Checks - `meteor add audit-argument-checks` |
10 | - Bootstrap 3 - `meteor add pinglamb:bootstrap3` | 10 | - Bootstrap 3 - `meteor add pinglamb:bootstrap3` |
11 | - Check - `meteor add check` | 11 | - Check - `meteor add check` |
12 | - CoffeeScript - `meteor add coffeescript` | 12 | - CoffeeScript - `meteor add coffeescript` |
13 | - Handlebars Server - `meteor add cmather:handlebars-server` | 13 | - Handlebars Server - `meteor add cmather:handlebars-server` |
14 | - Iron Router - `meteor add iron:router` | 14 | - Iron Router - `meteor add iron:router` |
15 | - jQuery - `meteor add jquery` | 15 | - jQuery - `meteor add jquery` |
16 | - jQuery Validation - `meteor add themeteorchef:jquery-validation` | 16 | - jQuery Validation - `meteor add themeteorchef:jquery-validation` |
17 | - Sass - `meteor add particle4dev:sass` | 17 | - Sass - `meteor add particle4dev:sass` |
18 | - Underscore - `meteor add underscore` | 18 | - Underscore - `meteor add underscore` |
19 | 19 | ||
20 | ### File Structure | 20 | ### File Structure |
21 | Base comes with a pre-defined file structure common to all projects along with some skeleton files for getting started quickly. Here's what it looks like: | 21 | Base comes with a pre-defined file structure common to all projects along with some skeleton files for getting started quickly. Here's what it looks like: |
22 | 22 | ||
23 | ``` | 23 | ``` |
24 | /root | 24 | /root |
25 | ---/.meteor | 25 | ---/.meteor |
26 | ---/client | 26 | ---/client |
27 | ------/controllers | 27 | ------/controllers |
28 | ---------/authenticated | 28 | ---------/authenticated |
29 | ------------header.coffee | 29 | ------------header.coffee |
30 | ---------/public | 30 | ---------/public |
31 | ------------login.coffee | 31 | ------------login.coffee |
32 | ------------signup.coffee | 32 | ------------signup.coffee |
33 | ------------recover-password.coffee | 33 | ------------recover-password.coffee |
34 | ------------reset-password.coffee | 34 | ------------reset-password.coffee |
35 | ------/helpers | 35 | ------/helpers |
36 | ---------helpers-ui.coffee | 36 | ---------helpers-ui.coffee |
37 | ------/includes | 37 | ------/includes |
38 | ---------_header.html | 38 | ---------_header.html |
39 | ------/layouts | 39 | ------/layouts |
40 | ---------layout-default.html | 40 | ---------layout-default.html |
41 | ------/routes | 41 | ------/routes |
42 | ---------filters.coffee | 42 | ---------filters.coffee |
43 | ---------routes-global.coffee | 43 | ---------routes-global.coffee |
44 | ---------routes-authenticated.coffee | 44 | ---------routes-authenticated.coffee |
45 | ---------routes-public.coffee | 45 | ---------routes-public.coffee |
46 | ------/stylesheets | 46 | ------/stylesheets |
47 | ---------/sass | 47 | ---------/sass |
48 | ------------/globals | 48 | ------------/globals |
49 | ---------------_extends.scss | 49 | ---------------_extends.scss |
50 | ------------/modules | 50 | ------------/modules |
51 | ------------/vendor | 51 | ------------/vendor |
52 | ------------/views | 52 | ------------/views |
53 | ---------------/authenticated | 53 | ---------------/authenticated |
54 | ---------------/public | 54 | ---------------/public |
55 | ------------------_login.scss | 55 | ------------------_login.scss |
56 | ---------application.scss | 56 | ---------application.scss |
57 | -------/views | 57 | -------/views |
58 | ---------/authenticated | 58 | ---------/authenticated |
59 | ------------index.html | 59 | ------------index.html |
60 | ---------/public | 60 | ---------/public |
61 | ------------login.html | 61 | ------------login.html |
62 | ------------not-found.html | 62 | ------------not-found.html |
63 | ------------recover-password.html | 63 | ------------recover-password.html |
64 | ------------reset-password.html | 64 | ------------reset-password.html |
65 | ------------signup.html | 65 | ------------signup.html |
66 | ---/collections | 66 | ---/collections |
67 | ------example.coffee | 67 | ------example.coffee |
68 | ---/lib | 68 | ---/lib |
69 | ---/packages | 69 | ---/packages |
70 | ------ (See List Above) | 70 | ------ (See List Above) |
71 | ---/public | 71 | ---/public |
72 | ---/server | 72 | ---/server |
73 | ------/admin | 73 | ------/admin |
74 | ---------accounts.coffee | 74 | ---------accounts.coffee |
75 | ---------startup.coffee | 75 | ---------startup.coffee |
76 | ------/data | 76 | ------/data |
77 | ---------/insert | 77 | ---------/insert |
78 | ---------/update | 78 | ---------/update |
79 | ---------/remove | 79 | ---------/remove |
80 | 80 | ||
81 | ---------/send | 81 | ---------/send |
82 | ---------/templates | 82 | ---------/templates |
83 | ------------reset-password.coffee | 83 | ------------reset-password.coffee |
84 | ------/publications | 84 | ------/publications |
85 | ``` | 85 | ``` |
86 | 86 | ||
87 | ### Language & Formatting | 87 | ### Language & Formatting |
88 | There are two considerations when using Base: JavaScript is written in [CoffeeScript](http://coffeescript.org) and CSS is written using [Sass](http://sass-lang.com). I prefer this setup because it allows me to move a little quicker than I do when writing in the native languages. This may not be for everybody, but I recommend giving both a shot because they make it much easier to write code. | 88 | There are two considerations when using Base: JavaScript is written in [CoffeeScript](http://coffeescript.org) and CSS is written using [Sass](http://sass-lang.com). I prefer this setup because it allows me to move a little quicker than I do when writing in the native languages. This may not be for everybody, but I recommend giving both a shot because they make it much easier to write code. |
89 | 89 | ||
90 | ### Functionality | 90 | ### Functionality |
91 | 91 | ||
92 | ###### Bootstrap (@3.2.0) | 92 | ###### Bootstrap (@3.2.0) |
93 | Base makes use of the [Bootstrap](http://getbootstrap.com) Front-End Framework. It may not be your bag of chips and is *definitely not required*. If you want to swap it out, you'll need to unhook the markup in each of the included template files in `/client/views` and uninstall the Bootstrap3 package by running `meteor remove pinglamb:bootstrap3` in your terminal. | 93 | Base makes use of the [Bootstrap](http://getbootstrap.com) Front-End Framework. It may not be your bag of chips and is *definitely not required*. If you want to swap it out, you'll need to unhook the markup in each of the included template files in `/client/views` and uninstall the Bootstrap3 package by running `meteor remove pinglamb:bootstrap3` in your terminal. |
94 | 94 | ||
95 | In respect to UI, Base uses Bootstrap's `.navbar` element, as well as its `.container` and a few `.row`/`.col-<size>-<columns>` wrappers. You'll also find the `.btn` class and its modifiers (`.success, .warning, etc.`) in use throughout the app. All of these applications are merely presentational and can be changed (or removed) as you see fit. | 95 | In respect to UI, Base uses Bootstrap's `.navbar` element, as well as its `.container` and a few `.row`/`.col-<size>-<columns>` wrappers. You'll also find the `.btn` class and its modifiers (`.success, .warning, etc.`) in use throughout the app. All of these applications are merely presentational and can be changed (or removed) as you see fit. |
96 | 96 | ||
97 | ###### Basic Routing | 97 | ###### Basic Routing |
98 | A collection of pre-defined routes and templates for common functionality (see Authenticate below). Also includes a set of common route filters for managing user access. Routes bundled include: | 98 | A collection of pre-defined routes and templates for common functionality (see Authenticate below). Also includes a set of common route filters for managing user access. Routes bundled include: |
99 | 99 | ||
100 | ``` | 100 | ``` |
101 | - / (Authenticated) | 101 | - / (Authenticated) |
102 | - /login (Public) | 102 | - /login (Public) |
103 | - /signup (Public) | 103 | - /signup (Public) |
104 | - /recover-password (Public) | 104 | - /recover-password (Public) |
105 | - /reset-password (Public) | 105 | - /reset-password (Public) |
106 | ``` | 106 | ``` |
107 | 107 | ||
108 | ###### Authentication | 108 | ###### Authentication |
109 | A complete authentication pattern complete with: | 109 | A complete authentication pattern complete with: |
110 | 110 | ||
111 | - Signup (at /signup) | 111 | - Signup (at /signup) |
112 | - Login (at /login) | 112 | - Login (at /login) |
113 | - Logout (no path, implemented as a dropdown item/click event in /client/controllers/header.coffee) | 113 | - Logout (no path, implemented as a dropdown item/click event in /client/controllers/header.coffee) |
114 | - Password Recovery (at /recover-password and /reset-password) | 114 | - Password Recovery (at /recover-password and /reset-password) |
115 | 115 | ||
116 | ###### Validation | 116 | ###### Validation |
117 | Validation via [jQuery Validation](http://jqueryvalidation.org). This applies to all of the public templates: login, signup, recover password, and reset password. | 117 | Validation via [jQuery Validation](http://jqueryvalidation.org). This applies to all of the public templates: login, signup, recover password, and reset password. |
118 | 118 | ||
119 | ###### Automatic Admin User Creation | 119 | ###### Automatic Admin User Creation |
120 | When developing, having a handful of user accounts to test your application with can come in handy. Base comes with an automated account generation script located in `server/admin/startup.coffee` that creates accounts based on an array of specified users. **Note: by default this creates one Admin user on server startup, so make sure to customize or remove this user so the public can't access your app**. | 120 | When developing, having a handful of user accounts to test your application with can come in handy. Base comes with an automated account generation script located in `server/admin/startup.coffee` that creates accounts based on an array of specified users. **Note: by default this creates one Admin user on server startup, so make sure to customize or remove this user so the public can't access your app**. |
121 | 121 |