Commit 10b1a6f3ddbf28b4443a5a4300a4a4183de88a1d

Authored by Ryan Glover
1 parent aa2061a70a
Exists in master

Update documentation to make reference to validation.

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
1 # The Meteor Chef - Base (@0.9.3) 1 # The Meteor Chef - Base (@0.9.3)
2 A starting point for Meteor apps. 2 A starting point for Meteor apps.
3 3
4 ### **This project is currently under heavy development and not recommended for use.** 4 ### **This project is currently under heavy development and not recommended for use.**
5 5
6 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. 6 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.
7 7
8 ### Packages Included 8 ### Packages Included
9 - Accounts (Base) - `meteor add accounts-base` 9 - Accounts (Base) - `meteor add accounts-base`
10 - Accounts (Password) - `meteor add accounts-password` 10 - Accounts (Password) - `meteor add accounts-password`
11 - Audit Argument Checks - `meteor add audit-argument-checks` 11 - Audit Argument Checks - `meteor add audit-argument-checks`
12 - Bootstrap 3 - `meteor add pinglamb:bootstrap3` 12 - Bootstrap 3 - `meteor add pinglamb:bootstrap3`
13 - Check - `meteor add check` 13 - Check - `meteor add check`
14 - CoffeeScript - `meteor add coffeescript` 14 - CoffeeScript - `meteor add coffeescript`
15 - Handlebars Server - `meteor add cmather:handlebars-server` 15 - Handlebars Server - `meteor add cmather:handlebars-server`
16 - Iron Router - `meteor add iron:router` 16 - Iron Router - `meteor add iron:router`
17 - jQuery - `meteor add jquery` 17 - jQuery - `meteor add jquery`
18 - jQuery Validation - `meteor add themeteorchef:jquery-validation`
18 - Sass - `meteor add particle4dev:sass` 19 - Sass - `meteor add particle4dev:sass`
19 - Underscore - `meteor add underscore` 20 - Underscore - `meteor add underscore`
20 21
21 ### File Structure 22 ### File Structure
22 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: 23 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:
23 24
24 ``` 25 ```
25 /root 26 /root
26 ---/.meteor 27 ---/.meteor
27 ---/client 28 ---/client
28 ------/controllers 29 ------/controllers
29 ---------/authenticated 30 ---------/authenticated
30 ------------header.coffee 31 ------------header.coffee
31 ---------/public 32 ---------/public
32 ------------login.coffee 33 ------------login.coffee
33 ------------signup.coffee 34 ------------signup.coffee
34 ------------recover-password.coffee 35 ------------recover-password.coffee
35 ------------reset-password.coffee 36 ------------reset-password.coffee
36 ------/helpers 37 ------/helpers
37 ---------helpers-ui.coffee 38 ---------helpers-ui.coffee
38 ------/includes 39 ------/includes
39 ---------_header.html 40 ---------_header.html
40 ------/layouts 41 ------/layouts
41 ---------layout-default.html 42 ---------layout-default.html
42 ------/routes 43 ------/routes
43 ---------filters.coffee 44 ---------filters.coffee
44 ---------routes-global.coffee 45 ---------routes-global.coffee
45 ---------routes-authenticated.coffee 46 ---------routes-authenticated.coffee
46 ---------routes-public.coffee 47 ---------routes-public.coffee
47 ------/stylesheets 48 ------/stylesheets
48 ---------/sass 49 ---------/sass
49 ------------/globals 50 ------------/globals
50 ---------------_extends.scss 51 ---------------_extends.scss
51 ------------/modules 52 ------------/modules
52 ------------/vendor 53 ------------/vendor
53 ------------/views 54 ------------/views
54 ---------------/authenticated 55 ---------------/authenticated
55 ---------------/public 56 ---------------/public
56 ------------------_login.scss 57 ------------------_login.scss
57 ---------application.scss 58 ---------application.scss
58 -------/views 59 -------/views
59 ---------/authenticated 60 ---------/authenticated
60 ------------index.html 61 ------------index.html
61 ---------/public 62 ---------/public
62 ------------login.html 63 ------------login.html
63 ------------not-found.html 64 ------------not-found.html
64 ------------recover-password.html 65 ------------recover-password.html
65 ------------reset-password.html 66 ------------reset-password.html
66 ------------signup.html 67 ------------signup.html
67 ---/collections 68 ---/collections
68 ------example.coffee 69 ------example.coffee
69 ---/lib 70 ---/lib
70 ---/packages 71 ---/packages
71 ------ (See List Above) 72 ------ (See List Above)
72 ---/public 73 ---/public
73 ---/server 74 ---/server
74 ------/admin 75 ------/admin
75 ---------accounts.coffee 76 ---------accounts.coffee
76 ---------startup.coffee 77 ---------startup.coffee
77 ------/data 78 ------/data
78 ---------/insert 79 ---------/insert
79 ---------/update 80 ---------/update
80 ---------/remove 81 ---------/remove
81 ------/email 82 ------/email
82 ---------/send 83 ---------/send
83 ---------/templates 84 ---------/templates
84 ------------reset-password.coffee 85 ------------reset-password.coffee
85 ------/publications 86 ------/publications
86 ``` 87 ```
87 88
88 ### Language & Formatting 89 ### Language & Formatting
89 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. 90 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.
90 91
91 ### Functionality 92 ### Functionality
92 93
93 ###### Bootstrap (@3.2.0) 94 ###### Bootstrap (@3.2.0)
94 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. 95 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.
95 96
96 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. 97 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.
97 98
98 ###### Basic Routing 99 ###### Basic Routing
99 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: 100 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:
100 101
101 ``` 102 ```
102 - / (Authenticated) 103 - / (Authenticated)
103 - /login (Public) 104 - /login (Public)
104 - /signup (Public) 105 - /signup (Public)
105 - /recover-password (Public) 106 - /recover-password (Public)
106 - /reset-password (Public) 107 - /reset-password (Public)
107 ``` 108 ```
108 109
109 ###### Authentication 110 ###### Authentication
110 A complete authentication pattern complete with: 111 A complete authentication pattern complete with:
111 112
112 - Signup (at /signup) 113 - Signup (at /signup)
113 - Login (at /login) 114 - Login (at /login)
114 - Logout (no path, implemented as a dropdown item/click event in /client/controllers/header.coffee) 115 - Logout (no path, implemented as a dropdown item/click event in /client/controllers/header.coffee)
115 - Password Recovery (at /recover-password and /reset-password) 116 - Password Recovery (at /recover-password and /reset-password)
116 117
117 ###### Validation (Not Added Yet) 118 ###### Validation
118 Validation via [jQuery Validation](http://jqueryvalidation.org). This applies to all of the public templates: login, signup, recover password, and reset password. 119 Validation via [jQuery Validation](http://jqueryvalidation.org). This applies to all of the public templates: login, signup, recover password, and reset password.
119 120
120 ###### Automatic Admin User Creation 121 ###### Automatic Admin User Creation
121 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**. 122 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**.
122 123