Updated README; Bumped version to 2.1.
This commit is contained in:
50
README.md
50
README.md
@@ -1,5 +1,5 @@
|
|||||||

|

|
||||||
Hackathon Starter 2.0.4 [](https://david-dm.org/sahat/hackathon-starter) [](https://travis-ci.org/sahat/hackathon-starter) [](https://github.com/igrigorik/ga-beacon)
|
Hackathon Starter 2.1 [](https://david-dm.org/sahat/hackathon-starter) [](https://travis-ci.org/sahat/hackathon-starter) [](https://github.com/igrigorik/ga-beacon)
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
<a href="https://github.com/sahat/hackathon-starter/zipball/master">
|
<a href="https://github.com/sahat/hackathon-starter/zipball/master">
|
||||||
@@ -8,7 +8,7 @@ Hackathon Starter 2.0.4 [
|
Jump to [What's new in 2.1?](#changelog)
|
||||||
|
|
||||||
A boilerplate for **Node.js** web applications.
|
A boilerplate for **Node.js** web applications.
|
||||||
|
|
||||||
@@ -23,9 +23,8 @@ I also tried to make it as **generic** and **reusable** as possible to cover mos
|
|||||||
without being too specific. In the worst case you can use this as a learning guide for your projects,
|
without being too specific. In the worst case you can use this as a learning guide for your projects,
|
||||||
if for example you are only interested in **Sign in with Google** authentication and nothing else.
|
if for example you are only interested in **Sign in with Google** authentication and nothing else.
|
||||||
|
|
||||||
Chances are you do not need all authentication methods or API examples. As of **Hackathon Starter 2.0**
|
Chances are you do not need all authentication methods or API examples. As of **Hackathon Starter 2.1**
|
||||||
it is possible to selectively check which authentication methods you need by running `generator.js`. For now
|
it is possible to selectively check which authentication methods you need by running `node setup.js`.
|
||||||
you still have to manually remove API examples that you don't need.
|
|
||||||
|
|
||||||
<h4 align="center">Flatly Bootstrap Theme</h3>
|
<h4 align="center">Flatly Bootstrap Theme</h3>
|
||||||
|
|
||||||
@@ -33,11 +32,11 @@ you still have to manually remove API examples that you don't need.
|
|||||||
|
|
||||||
<h4 align="center">Default Theme</h3>
|
<h4 align="center">Default Theme</h3>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<h4 align="center">Hackathon Starter Generator</h3>
|
<h4 align="center">Hackathon Starter Generator</h3>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Table of Contents
|
Table of Contents
|
||||||
-----------------
|
-----------------
|
||||||
@@ -130,20 +129,18 @@ restart the server each time you make a small change in code. To install, run
|
|||||||
Generator
|
Generator
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Hackathon Starter Generator is still in alpha stage. It is tighly tied to the
|
Hackathon Starter Generator is currently in the experimental stage. It is tighly
|
||||||
project code. As soon as you start changing and moving things around, it will
|
tied to the project code. As soon as you start changing and moving things around,
|
||||||
probably no longer work as expected. That is why it's best to use when you first
|
it will robably no longer work as expected. That is why it's best to use when
|
||||||
download Hackathon Starter.
|
you first download the project.
|
||||||
|
|
||||||
:exclamation: **Note:** Generator has a "destructive" behavior, it will physically
|
:exclamation: **Note:** Generator has a "destructive" behavior, it will physically
|
||||||
modify your code. *There is no undo action.* To be on a safe side, always commit
|
modify your code. *There is no undo action.* To be on a safe side, always commit
|
||||||
your code to Git, so you could go back and undo the changes.
|
your code to Git, so you could go back and revert the changes.
|
||||||
|
|
||||||
Currently it supports adding/removing authentication providers and switching
|
Currently it supports removing authentication providers, switching
|
||||||
between SendGrid/Mailgun email services. In the future you'll be able to use
|
between SendGrid, Mailgun and Mandrill email services and adding a Node.js
|
||||||
it to quickly add Socket.io support to your app, add Mozilla Persona sign-in,
|
cluster support.
|
||||||
generate new pages (create new routes, templates and controllers for you
|
|
||||||
automatically).
|
|
||||||
|
|
||||||
Obtaining API Keys
|
Obtaining API Keys
|
||||||
------------------
|
------------------
|
||||||
@@ -337,8 +334,7 @@ Project Structure
|
|||||||
| **views**/layout.jade | Base template. |
|
| **views**/layout.jade | Base template. |
|
||||||
| **views**/home.jade | Home page template. |
|
| **views**/home.jade | Home page template. |
|
||||||
| app.js | Main application file. |
|
| app.js | Main application file. |
|
||||||
| cluster_app.js | Runs multiple instances of `app.js` Node.js clusters. |
|
| generator.js | Tool for removing authentication providers and other things.|
|
||||||
| generator.js | Tool for adding/removing authentications and other things. |
|
|
||||||
|
|
||||||
:exclamation: **Note:** There is no preference how you name or structure your views.
|
:exclamation: **Note:** There is no preference how you name or structure your views.
|
||||||
You could place all your templates in a top-level `views` directory without
|
You could place all your templates in a top-level `views` directory without
|
||||||
@@ -399,9 +395,9 @@ List of Packages
|
|||||||
| mocha | Test framework. |
|
| mocha | Test framework. |
|
||||||
| chai | BDD/TDD assetion library. |
|
| chai | BDD/TDD assetion library. |
|
||||||
| supertest | HTTP assertions library. |
|
| supertest | HTTP assertions library. |
|
||||||
| mstring | Multi-line strings for generator. |
|
| multiline | Multi-line strings for generator. |
|
||||||
| inquirer | Interactive command line interface for generator. |
|
| blessed | Interactive command line interface for generator. |
|
||||||
| colors | Pretty output colors for generator. |
|
| yui | Used by the Yahoo API example. |
|
||||||
|
|
||||||
Useful Tools and Resources
|
Useful Tools and Resources
|
||||||
--------------------------
|
--------------------------
|
||||||
@@ -484,6 +480,9 @@ input(type='hidden', name='_csrf', value='_csrf')
|
|||||||
specify a list of routes that should bypass CSRF verification check.
|
specify a list of routes that should bypass CSRF verification check.
|
||||||
|
|
||||||
### What is cluster_app.js?
|
### What is cluster_app.js?
|
||||||
|
|
||||||
|
**Note**: It is now part of the generator as of **v2.1**.
|
||||||
|
|
||||||
From the [Node.js Documentation](http://nodejs.org/api/cluster.html#cluster_how_it_works):
|
From the [Node.js Documentation](http://nodejs.org/api/cluster.html#cluster_how_it_works):
|
||||||
> A single instance of Node runs in a single thread. To take advantage of multi-core systems
|
> A single instance of Node runs in a single thread. To take advantage of multi-core systems
|
||||||
> the user will sometimes want to launch a cluster of Node processes to handle the load.
|
> the user will sometimes want to launch a cluster of Node processes to handle the load.
|
||||||
@@ -1139,6 +1138,13 @@ Add this to `package.json`, after *name* and *version*. This is necessary becaus
|
|||||||
Changelog
|
Changelog
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
### 2.1 (May 13, 2014)
|
||||||
|
- New and improved generator - **setup.js**
|
||||||
|
- Added Yahoo API
|
||||||
|
- CSS and templates cleanup
|
||||||
|
- Minor improvement to the default theme
|
||||||
|
- `cluster_app.js` has been moved into **setup.js**
|
||||||
|
|
||||||
### 2.0.4 (April 26, 2014)
|
### 2.0.4 (April 26, 2014)
|
||||||
- Added Mandrill e-mail service (via generator)
|
- Added Mandrill e-mail service (via generator)
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hackathon-starter",
|
"name": "hackathon-starter",
|
||||||
"version": "2.0.4",
|
"version": "2.1.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sahat/hackathon-starter.git"
|
"url": "https://github.com/sahat/hackathon-starter.git"
|
||||||
@@ -60,7 +60,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"blessed": "0.0.29",
|
"blessed": "0.0.29",
|
||||||
"chai": "^1.9.1",
|
"chai": "^1.9.1",
|
||||||
"colors": "^0.6.2",
|
|
||||||
"mocha": "^1.18.2",
|
"mocha": "^1.18.2",
|
||||||
"multiline": "^0.3.4",
|
"multiline": "^0.3.4",
|
||||||
"supertest": "^0.11.0"
|
"supertest": "^0.11.0"
|
||||||
|
Reference in New Issue
Block a user