|Joseph Snow 242f71b708 updating script permissions||8 years ago|
|emails||8 years ago|
|etherpad-lite @ 9534f9f1a1||8 years ago|
|fcbackups||8 years ago|
|public||8 years ago|
|util||8 years ago|
|views||8 years ago|
|.gitignore||8 years ago|
|.gitmodules||8 years ago|
|COPYING||8 years ago|
|README.md||8 years ago|
|app.js||8 years ago|
|db.js||8 years ago|
|fc_monitor_epl.js||8 years ago|
|log.js||8 years ago|
|mailer.js||8 years ago|
|models.js||8 years ago|
|package.json||8 years ago|
|restart||8 years ago|
|schools.json||8 years ago|
|start||8 years ago|
|stop||8 years ago|
This is the source code repository for finalsclub.org.
FC is a 501(c)(3) non-profit open education project dedicated to helping college students collaborate, learn, and share their knowledge freely online.
[[ discussion groups, chat rooms, etc. related to FC and FC sources ]]
$ pwd /home/you $ install git $ install node $ git clone email@example.com:/finalsclubdev/FinalsClub fc $ cd fc $ git submodule init $ git submodule update
[[ flesh this out with correct commands - reference util scripts - fix util scripts ]]
The system consists of these main parts:
The editor is an embedded editor called Etherpad-Lite (EPL). It provides the ability for multiple people to simultaneously edit a single document. The documents in FC are the notes for a specific lecture.
EPL is installed as a git submodule to the main FC source tree with the name "etherpad-lite".
The back channel portion of FC is implemented with "BC". BC allows the note takers, or anyone else who is just observing, to suggest questions for the lecturer, and vote on each other's questions. It also allows people to post commentary.
Although the actual BC code was written for FC, it has been extracted from the original FC source and turned into an independent open source project.
BC is installed as a git submodule to the main FC source tree with the name "bc".
Several node modules are leveraged to to make the basic website work:
[[ more detail about website generally, then defer to src comments ]]
The database is MongoDB. MongoDB is not a relational database, but rather a noSQL or "document/object" database. Data is stored as structured objects versus tables and rows. (More about MongoDB)[http://mongodb.org].
[[ notes about scaling/replication/etc. ]]
The actual finalsclub.org servers run in the cloud on Linux servers, using Amazon Web Services (AWS). Scaling is accomplished by adding additional servers to a load balancer.
NOTE: The scaling system is automatic; new servers have to be added manually, but it it's very easy. NOTE: Automatic fail-over of the database is not yet in place.
NOTE: There are currently 2 running server instances. One for the live server and one for testing.
Data is stored in a MongoDB server running on the same AWS instance as the website. Data is backed up daily to the durable AWS S3 system. One backup of the database is kept for the most recent 30 days, one for each of the most recent 12 months, and one for every year.
AWS Cloudwatch is used to monitor the servers. When the configured conditions warrant attention, notices are sent to "firstname.lastname@example.org".
NOTE: There are currently 2 monitors set up:
NOTE: We still have an ongoing issue with the EPL server hanging up. This is being worked on.