Permalink
Browse files

Remove Windows newlines

  • Loading branch information...
1 parent 8181b3d commit 41b13a680601f4f85964821ca87ec4e8cba44324 @hueniverse committed Sep 1, 2011
Showing with 230 additions and 220 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 .npmignore
  3. +23 −23 LICENSE
  4. +93 −93 Readme.md
  5. +94 −94 config.js.example
  6. +8 −0 package.json
  7. +10 −10 postmile.js
View
1 .gitignore
@@ -1,2 +1,3 @@
config.js
+.nide
View
1 .npmignore
@@ -0,0 +1 @@
+.nide
View
46 LICENSE
@@ -1,24 +1,24 @@
-Copyright (c) 2011, Yahoo, Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * Neither the name of Yahoo! Inc. nor the
- names of its contributors may be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+Copyright (c) 2011, Yahoo, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of Yahoo! Inc. nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
186 Readme.md
@@ -1,93 +1,93 @@
-Postmile is a collaborative list making tool built using JS, Node.js, and MongoDB.
-
-# Installation
-
-Postmile consists of an api server and a web server, both running using Node.js. The two servers can run on the same machine or different machines.
-The following is based on a shared machine.
-
-```bash
-$ git clone git@github.com:hueniverse/postmile.git
-$ cd postmile
-$ cp config.js.example config.js
-```
-
-Edit postmile/config.js with your preferences and configuration.
-
-```bash
-$ cd api
-$ cp vault.js.example vault.js
-```
-
-Edit postmile/api/vault.js and set the values of the 'aes256Key' variables to different random secrets sufficiently long (e.g. 40 characters).
-
-If your MongoDB requires authentication, set the values of the database 'username' and 'password' (otherwise leave empty).
-
-```bash
-$ npm update
-$ node install
-
-110827/005720.948, info, Database initialized
-110827/005720.952, info, Initial dataset created successfully
-110827/005720.952, info, >>>>> postmile.web client secret: __some__secret__
-```
-
-Copy the postmile.web client secret and save it for later.
-
-```bash
-$ cd ../web
-$ npm update
-$ cp vault.js.example vault.js
-```
-
-Edit postmile/web/vault.js and set the values of the 'aes256Key' variables to different random secrets sufficiently long (e.g. 40 characters).
-
-Set the value of the postmileAPI 'clientSecret' variable to the client secret saved earlier.
-
-Enter at least one third-party API credentials (Twitter, Facebook, or Yahoo!) as received from each provider when you registered the application.
-If asked, the callback URI is your web server configuration entered above with the path '/auth/twitter', '/auth/facebook', or '/auth/yahoo'.
-For example, if you configured your web server to run on '127.0.0.1', port '8000', using the 'http' scheme, and you are using Twitter, your
-callback URI is http://127.0.0.1:8000/auth/twitter.
-
-```bash
-$ cd ..
-```
-
-Make sure to protect your vault.js files. If an attacker gets hold of them, you're screwed.
-If you are going to run this in a production environment, you should use TLS (HTTPS) for the web server (otherwise it's cookies and OAuth 2.0 bits are
-pretty open for attacks). To configure TLS, set the 'process.web.tls' variable in the postmile/config.js file to point to your TLS key and certificate.
-
-# Startup
-
-To start both servers at the same time in the same process (combined log output):
-
-```bash
-$ node postmile
-```
-
-To start each server individually:
-
-```bash
-$ node api/index &
-$ node web/index &
-```
-
-Now point your browser at the web server address and start using Postmile.
-
-# Credits
-
-[Eran Hammer-Lahav](http://hueniverse.com) - Concept and server-side components
-
-[Lance Welsh](https://github.com/lpw) - 'view' web client
-
-Axel Albin-Lax, Josh Kamler, and Bryan Chen - UX/UI design, Snowy web client theme
-
-[Emmanuel Crouvisier](https://github.com/emcro) - 'view' web client CSS/HTML
-
-[Chris Carrasco](http://chriscarrasco.com/) - Original artwork
-
-# History
-
-Postmile is based on the discontinued experimental Yahoo! Sled project initially published at: https://github.com/yahoo/postmile.
-
-
-
+Postmile is a collaborative list making tool built using JS, Node.js, and MongoDB.
+
+# Installation
+
+Postmile consists of an api server and a web server, both running using Node.js. The two servers can run on the same machine or different machines.
+The following is based on a shared machine.
+
+```bash
+$ git clone git@github.com:hueniverse/postmile.git
+$ cd postmile
+$ cp config.js.example config.js
+```
+
+Edit postmile/config.js with your preferences and configuration.
+
+```bash
+$ cd api
+$ cp vault.js.example vault.js
+```
+
+Edit postmile/api/vault.js and set the values of the 'aes256Key' variables to different random secrets sufficiently long (e.g. 40 characters).
+
+If your MongoDB requires authentication, set the values of the database 'username' and 'password' (otherwise leave empty).
+
+```bash
+$ npm update
+$ node install
+
+110827/005720.948, info, Database initialized
+110827/005720.952, info, Initial dataset created successfully
+110827/005720.952, info, >>>>> postmile.web client secret: __some__secret__
+```
+
+Copy the postmile.web client secret and save it for later.
+
+```bash
+$ cd ../web
+$ npm update
+$ cp vault.js.example vault.js
+```
+
+Edit postmile/web/vault.js and set the values of the 'aes256Key' variables to different random secrets sufficiently long (e.g. 40 characters).
+
+Set the value of the postmileAPI 'clientSecret' variable to the client secret saved earlier.
+
+Enter at least one third-party API credentials (Twitter, Facebook, or Yahoo!) as received from each provider when you registered the application.
+If asked, the callback URI is your web server configuration entered above with the path '/auth/twitter', '/auth/facebook', or '/auth/yahoo'.
+For example, if you configured your web server to run on '127.0.0.1', port '8000', using the 'http' scheme, and you are using Twitter, your
+callback URI is http://127.0.0.1:8000/auth/twitter.
+
+```bash
+$ cd ..
+```
+
+Make sure to protect your vault.js files. If an attacker gets hold of them, you're screwed.
+If you are going to run this in a production environment, you should use TLS (HTTPS) for the web server (otherwise it's cookies and OAuth 2.0 bits are
+pretty open for attacks). To configure TLS, set the 'process.web.tls' variable in the postmile/config.js file to point to your TLS key and certificate.
+
+# Startup
+
+To start both servers at the same time in the same process (combined log output):
+
+```bash
+$ node postmile
+```
+
+To start each server individually:
+
+```bash
+$ node api/index &
+$ node web/index &
+```
+
+Now point your browser at the web server address and start using Postmile.
+
+# Credits
+
+[Eran Hammer-Lahav](http://hueniverse.com) - Concept and server-side components
+
+[Lance Welsh](https://github.com/lpw) - 'view' web client
+
+Axel Albin-Lax, Josh Kamler, and Bryan Chen - UX/UI design, Snowy web client theme
+
+[Emmanuel Crouvisier](https://github.com/emcro) - 'view' web client CSS/HTML
+
+[Chris Carrasco](http://chriscarrasco.com/) - Original artwork
+
+# History
+
+Postmile is based on the discontinued experimental Yahoo! Sled project initially published at: https://github.com/yahoo/postmile.
+
+
+
View
188 config.js.example
@@ -1,94 +1,94 @@
-// Product Configuration
-
-exports.product = {
-
- name: 'Postmile'
-};
-
-
-// Server Configuration
-
-exports.host = {
-
- web: {
-
- domain: 'localhost',
- port: 8000,
- scheme: 'http'
- },
-
- api: {
-
- domain: 'localhost',
- port: 8001,
- scheme: 'http'
- },
-
- uri: function (type) {
-
- var set = (type === 'web' ? exports.host.web : exports.host.api);
- return set.scheme + '://' + set.domain + (set.port ? ':' + set.port : '');
- },
-
- authority: function (type) {
-
- var set = (type === 'web' ? exports.host.web : exports.host.api);
- return set.domain + (set.port ? ':' + set.port : '');
- }
-};
-
-
-// Process Configuration
-
-exports.process = {
-
- web: {
-
- // runAs: 'www-data',
-
- // tls: {
- //
- // key: 'cert/postmile.net.key',
- // cert: 'cert/postmile.net.crt'
- // }
- },
-
- api: {
-
- // runAs: 'www-data',
- }
-};
-
-
-// Database Configuration
-
-exports.database = {
-
- host: '127.0.0.1',
- port: 27017,
- db: 'postmile'
-};
-
-
-// Email Configuration
-
-exports.email = {
-
- fromName: 'Postmile',
- replyTo: 'no-reply@your.domain',
- admin: 'admin@your.domain',
- feedback: 'admin@your.domain',
-
- server: {
-
-// port: 25,
-// user: '',
-// password: '',
-// host: 'localhost',
-// ssl: false
- }
-};
-
-
-
-
+// Product Configuration
+
+exports.product = {
+
+ name: 'Postmile'
+};
+
+
+// Server Configuration
+
+exports.host = {
+
+ web: {
+
+ domain: 'localhost',
+ port: 8000,
+ scheme: 'http'
+ },
+
+ api: {
+
+ domain: 'localhost',
+ port: 8001,
+ scheme: 'http'
+ },
+
+ uri: function (type) {
+
+ var set = (type === 'web' ? exports.host.web : exports.host.api);
+ return set.scheme + '://' + set.domain + (set.port ? ':' + set.port : '');
+ },
+
+ authority: function (type) {
+
+ var set = (type === 'web' ? exports.host.web : exports.host.api);
+ return set.domain + (set.port ? ':' + set.port : '');
+ }
+};
+
+
+// Process Configuration
+
+exports.process = {
+
+ web: {
+
+ // runAs: 'www-data',
+
+ // tls: {
+ //
+ // key: 'cert/postmile.net.key',
+ // cert: 'cert/postmile.net.crt'
+ // }
+ },
+
+ api: {
+
+ // runAs: 'www-data',
+ }
+};
+
+
+// Database Configuration
+
+exports.database = {
+
+ host: '127.0.0.1',
+ port: 27017,
+ db: 'postmile'
+};
+
+
+// Email Configuration
+
+exports.email = {
+
+ fromName: 'Postmile',
+ replyTo: 'no-reply@your.domain',
+ admin: 'admin@your.domain',
+ feedback: 'admin@your.domain',
+
+ server: {
+
+// port: 25,
+// user: '',
+// password: '',
+// host: 'localhost',
+// ssl: false
+ }
+};
+
+
+
+
View
8 package.json
@@ -0,0 +1,8 @@
+{
+ "name": "postmile",
+ "description": "",
+ "version": "0.1.0",
+ "author": "",
+ "dependencies": {},
+ "devDependencies": {}
+}
View
20 postmile.js
@@ -1,10 +1,10 @@
-// Start API Server
-
-require('./api/index');
-
-
-// Start Web Server
-
-require('./web/index');
-
-
+// Start API Server
+
+require('./api/index');
+
+
+// Start Web Server
+
+require('./web/index');
+
+

0 comments on commit 41b13a6

Please sign in to comment.