Merge pull request #1 from sleeplessinc/master
[oweals/finalsclub.git] / README.md
1
2 # Finals Club (FC)
3
4 This is the source code repository for [finalsclub.org](http://finalsclub.org/).
5
6 FC is a 501(c)(3) non-profit open education project dedicated to
7 helping college students collaborate, learn, and share their knowledge freely online.
8
9
10 # Installing
11
12 Requirements:
13
14 - Linux server (circa 2011)
15 - Node.js (Version 0.4.10 or later)
16 - MongoDB (Version  1.8.2 or later)
17
18
19
20 # Infrastructure
21
22 The FC servers run in the cloud on Linux servers, using Amazon Web Services (AWS).
23 Scaling is accomplished by adding additional servers to a load balancer.
24
25 NOTE: The scaling system is automatic; new servers have to be added manually, but it it's very easy.
26 NOTE: Automatic fail-over of the database is not yet in place.
27
28 NOTE: There are currently 2 running server instances.  One for the live server and one for testing.
29
30 Data is stored in a MongoDB server running on the same AWS instance as the website.
31 Data is backed up daily to the durable AWS S3 system.
32 One backup of the database is kept for the most recent 30 days, one for each of the most
33 recent 12 months, and one for every year.
34
35 AWS Cloudwatch is used to monitor the servers.
36 When the configured conditions warrant attention, notices are sent to "info@finalsclub.org".
37
38 NOTE: There are currently 2 monitors set up:
39
40 - available disk space
41 - CPU utilization
42
43 NOTE: We still have an ongoing issue with the EPL server hanging up.  This is being worked on.
44
45
46 # Source Code
47
48 The source code for the website itself consists of these main parts:
49
50 - The collaborative, real-time editor
51 - The back channel
52 - The surrounding website
53
54 These 3 pieces are written in Javascript for Node.js.
55
56 ## The Collaborative Real-time Editor 
57
58 The real-time editor is an embedded editor called
59 [Etherpad-Lite](https://github.com/Pita/etherpad-lite) (EPL).
60 It provides the ability for multiple people to simultaneously edit a single document.
61 The documents in FC are the notes for a specific lecture.
62
63
64 ## The Back Channel (BC)
65
66 The back channel portion of FC utilizes ["BC"](https://github.com/FinalsClubDev/BC).
67 BC allows the note takers, or anyone else who is just observing,
68 to suggest questions for the lecturer, and vote on each other's questions.
69 It also allows people to post commentary.
70
71
72 ## The Surrounding Website
73
74 This is the FC website, which brings together the other two elements into
75 a single website that serves it's stated purpose (above).
76 This would be the home page, privacy policy page, the page that lists the participating
77 schools, the sub pages containing lists of lectures and note taking sessions, and the
78 core page where EPL and BC are both found along side each other. 
79
80
81
82
83
84