Main site for Finals Club Services http://finalsclub.org (mirror)
Seth Woodworth 1f17b81c67 Merge pull request #35 from sethwoodworth/devel | 12 роки тому | |
---|---|---|
bc @ 3ee3af3ffc | 12 роки тому | |
emails | 13 роки тому | |
etherpad-lite @ 9534f9f1a1 | 12 роки тому | |
fcbackups | 13 роки тому | |
public | 12 роки тому | |
util | 13 роки тому | |
views | 13 роки тому | |
.gitignore | 13 роки тому | |
.gitmodules | 12 роки тому | |
.vimrc | 13 роки тому | |
COPYING | 13 роки тому | |
README.md | 13 роки тому | |
app.js | 12 роки тому | |
db.js | 13 роки тому | |
devRun.sh | 12 роки тому | |
fc_monitor_epl.js | 13 роки тому | |
h | 13 роки тому | |
log.js | 13 роки тому | |
mailer.js | 13 роки тому | |
models.js | 12 роки тому | |
package.json | 12 роки тому | |
restart | 13 роки тому | |
schools.json | 13 роки тому | |
setup.sh | 13 роки тому | |
setup2.sh | 12 роки тому | |
start | 12 роки тому | |
stop | 13 роки тому |
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 ]]
Requirements:
Deployment:
Copy setup.sh to home directory.
REVIEW setup.sh BEFORE RUNNING!!!!
run: sudo setup.sh
mongorestore any back-up databases that you may have.
Copy "start" to home directory and run.
The system consists of these main parts:
Most of the system is written in Javascript and executed by the Node.js runtime.
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".
This is the FC website, which brings together the other two elements into a single website that serves it's stated purpose (above). This would be the home page, privacy policy page, the page that lists the participating schools, the sub pages containing lists of lectures and note taking sessions, and the core page where EPL and BC are both found along side each other.
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 "info@finalsclub.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.