|
1 | | -## Quick Start |
| 1 | +#### Cool Stuff from the best of the best |
2 | 2 |
|
3 | | -~~~sh |
4 | | -# getting the code |
5 | | -git clone [email protected]:nko4/theteam.git && cd ./theteam/ |
6 | | - |
7 | | -# developing |
8 | | -npm install |
9 | | -npm start |
10 | | - |
11 | | -# deploying (to http://theteam.2013.nodeknockout.com/) |
12 | | -./deploy nko |
13 | | - |
14 | | -# ssh access |
15 | | - |
16 | | - |
17 | | -# or, if you get prompted for a password |
18 | | -ssh -i ./id_deploy [email protected] |
19 | | -ssh -i ./id_deploy [email protected] |
20 | | -~~~ |
21 | | - |
22 | | -Read more about this setup [on our blog][deploying-nko]. |
23 | | - |
24 | | -[deploying-nko]: http://blog.nodeknockout.com/post/66039926165/node-knockout-deployment-setup |
25 | | - |
26 | | -## Tips |
27 | | - |
28 | | -### Your Server |
29 | | - |
30 | | -We've already set up a basic node server for you. Details: |
31 | | - |
32 | | -* Ubuntu 12.04 (Precise) - 64-bit |
33 | | -* server.js is at: `/home/deploy/current/server.js` |
34 | | -* logs are at: `/home/deploy/shared/logs/server/current` |
35 | | -* `runit` keeps the server running. |
36 | | - * `sv restart serverjs` - restarts |
37 | | - * `sv start serverjs` - starts |
38 | | - * `sv stop serverjs` - stops |
39 | | - * `ps -ef | grep runsvdir` - to see logs |
40 | | - * `cat /etc/service/serverjs/run` - to see the config |
41 | | - |
42 | | -You can use the `./deploy` script included in this repo to deploy to your |
43 | | -server right now. Advanced users, feel free to tweak. |
44 | | - |
45 | | -Read more about this setup [on our blog][deploying-nko]. |
46 | | - |
47 | | -### Vote KO Widget |
48 | | - |
49 | | - |
50 | | - |
51 | | -Use our "Vote KO" widget to let from your app directly. Here's the code for |
52 | | -including it in your site: |
53 | | - |
54 | | -~~~html |
55 | | -<iframe src="http://nodeknockout.com/iframe/theteam" frameborder=0 scrolling=no allowtransparency=true width=115 height=25> |
56 | | -</iframe> |
57 | | -~~~ |
58 | | - |
59 | | -### Tutorials & Free Services |
60 | | - |
61 | | -If you're feeling a bit lost about how to get started or what to use, we've |
62 | | -got some [great resources for you](http://nodeknockout.com/resources), |
63 | | -including: |
64 | | - |
65 | | -* [How to install node and npm](http://blog.nodeknockout.com/post/65463770933/how-to-install-node-js-and-npm) |
66 | | -* [Getting started with Express](http://blog.nodeknockout.com/post/65630558855/getting-started-with-express) |
67 | | -* [OAuth with Passport](http://blog.nodeknockout.com/post/66118192565/getting-started-with-passport) |
68 | | -* [Going Beyond “Hello World” with Drywall](http://blog.nodeknockout.com/post/65711111886/going-beyond-hello-world-with-drywall) |
69 | | -* [and many more](http://nodeknockout.com/resources#tutorials)… |
70 | | - |
71 | | -## Have fun! |
72 | | - |
73 | | -If you have any issues, we're on IRC in #nodeknockout on freenode, email us at |
74 | | -<[email protected]>, or tweet [@node_knockout ](https://twitter.com/node_knockout). |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
0 commit comments