Merge remote-tracking branch 'origin/master'
* origin/master: fix error on PR #45x Update FAQ on deployment error fixes #36 add a table of contents Fix line breakspull/2/head
commit
93511f861f
17
LICENSE
17
LICENSE
|
@ -2,8 +2,19 @@ The MIT License (MIT)
|
|||
|
||||
Copyright (c) 2014 Sahat Yalkabov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
|
24
README.md
24
README.md
|
@ -29,6 +29,23 @@ Sadly, there is no step-by-step wizard to configure the boilerplate code just fo
|
|||
|
||||
![Alt](https://lh5.googleusercontent.com/-KmlaMLKGCqg/UuWt4MrXzeI/AAAAAAAAD6o/KUucObo33zU/w1170-h860-no/Screenshot+2014-01-26+19.52.03.png)
|
||||
|
||||
Table of Contents
|
||||
-----------------
|
||||
- [Features](#features)
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Getting Started](#getting-started)
|
||||
- [Obtaining API Keys](#obtaining-api-keys)
|
||||
- [Project Structure](#project-structure)
|
||||
- [Useful Tools](#useful-tools)
|
||||
- [Recommended Design](#recommended-design)
|
||||
- [Recommended Node.js Libraries](#recommended-nodejs-libraries)
|
||||
- [Recommended Client-Side libraries](#recommended-client-side-libraries)
|
||||
- [Pro Tips](#pro-tips)
|
||||
- [FAQ](#faq)
|
||||
- [TODO](#todo)
|
||||
- [Contributing](#contributing)
|
||||
- [License](#license)
|
||||
|
||||
Features
|
||||
--------
|
||||
- **Local Authentication** using Email and Password
|
||||
|
@ -307,7 +324,6 @@ without minifying or concatenating. When you deploy your app, it will run in `pr
|
|||
**connect-assets** will automatically serve a single concatenated + minified `application.js`. For more
|
||||
information see [Sprockets-style concatenation](https://github.com/adunkman/connect-assets/#sprockets-style-concatenation)
|
||||
|
||||
|
||||
### I am getting MongoDB Connection Error, how do I fix it?
|
||||
That's a custom error message defined in `app.js` to indicate that there was a connection problem to MongoDB:
|
||||
```
|
||||
|
@ -319,6 +335,12 @@ As the message says, you need to have a MongoDB server running before launching
|
|||
[mongodb.org/downloads](mongodb.org/downloads), or install it via a package manager
|
||||
([Homebrew](http://brew.sh/) on Mac, **apt-get** on Ubuntu, **yum** on Fedora, etc.)
|
||||
|
||||
### I get an error when I deploy my app, why?
|
||||
Chances are you haven't changed the *Dabatase URI* in `secrets.js`. If `db` is set to `localhost`, it will only work
|
||||
on your machine as long as MongoDB is running. When you deploy to Heroku, OpenShift or some other provider, you will not have MongoDB
|
||||
running on `localhost`. You need to create an account with [MongoLab](http://mongolab.com) or [MongoHQ](http://mongohq.com), then create a free tier database. See **Deployment** (coming soon) section for more information on how to
|
||||
setup an account and a new database step-by-step with MongoLab.
|
||||
|
||||
### Why Jade and not Handlebars template engine?
|
||||
When I first started this project I didn't have any experience with Handlebars. Since then I have worked on Ember.js apps and got myself familiar with the Handlebars syntax. While it is true Handlebars is easier, because it looks like good old HTML, I have no regrets picking Jade over Handlebars. First off, it's the default template engine in Express, so someone who has built Express apps in the past already knows it. Secondly, I find `extends` and `block` to be indispensable, which as far as I know, Handlebars does not have out of the box. And lastly, subjectively speaking, Jade looks much cleaner and shorter than Handlebars, or any non-HAML style for that matter.
|
||||
|
||||
|
|
Loading…
Reference in New Issue