-
Notifications
You must be signed in to change notification settings - Fork 2
/
dev_notes.txt
38 lines (26 loc) · 1.79 KB
/
dev_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
This document contains a series of notes not directly written to be consumed by someone else by me, but if they can be of help, I'd be happy with that.
Development Environment
- You will need Node (and npm), Redis and optionally Foreman to use the env.example.sh script in the code (at least you will need to set up variables so better off using the script)
Make sure you have redis installed: http://redis.io/download
Run it locally. Type: redis-server
I got redis installed through mac ports.
- to start up a redis server instance use:
redis-server /opt/local/etc/redis.conf
And it seems to work when testing with:
- Open redis-cli
- set joon "jshead"
- get joon
Have also tested it in ubuntu through apt-get and seems to work fine.
Redis is certainly different if you are used to relational dbs; for some insight on how data is structured in this app
a look at Ryan Briones' talk can help: http://vimeo.com/26385026
Make sure you have node installed: http://nodejs.org/#download
Run it locally. Type: node (exit with crtl+c).
Install npm
curl http://npmjs.org/install.sh | sh
Installation of the dependencies for the app is automated through the package.json file. Type: npm install
- Foreman installation: gem install foreman
For authentication a series of keys are needed (env.sh). Twitter allows to register http://127.0.0.1:3000 so I went with that one. (although it is a pain to have to use auth during development so should find a way to disable it!)
Copy the keys for your app in the env file after registering it at http://dev.twitter.com
A simple: './env.example.sh' command should start up the system and make it available in http://localhost:3000/
The specs can be run with vows as follows: node courses/spec/course-spec.js
(there might be other ways but I haven't read the vows docs... yet!)