Skip to content

katiemthom/mrscutronadotcom

Repository files navigation

mrscutronadotcom

Mrscutronadotcom is a web application I am building for a fantastic friend and Algebra II teacher, Laura Cutrona. This project was inspired by my time in the classroom as a math teacher at Ocala Middle School and Metropolitan Arts and Tech High School. With this application, Mrs. Cutrona will be able to assign blog posts as homework or in-class assignments as well as send mass texts to students ("don't forget--quiz tomorrow!"), and students will be able to view interactive grade visualizations as well as download class notes. There are more features to come! This is a work in progress, and will be put into production January 2014.

Mrscutronadotcome is written with Python, Flask, Javascript, AJAX, D3, and the Twilio API.

##Grades

####gradeschart.js

Uses AJAX to retrieve student grade data and D3 to visualize the data. Data is graphed in layers and scaled according to the amount of data. Implements interactive "What If?" feature where students can select from a variety of outcomes for future assignments and see how their grade is affected.

####csvparser.py

Parses grade files exported from Laura's gradebook and enters individual grades into the database.

####Grades view:

####"What if?":

##Blogs

Blogging functionality includes searching by user, editing and deleting comments and posts, add post live preview and autosave.

####post.js, addpost.js

Uses AJAX to allow students to comment on posts and edit comments.

Uses the browser session and AJAX to auto-save posts, and markdown for styling.

####Featured and recent blogs view:

####Add post view:

##Build Instructions

####Environment

You'll need virtualenv for this. If you don't have it, run the following in your project folder:

$ pip install virtualenv
$ virtualenv env
$ . env/bin/activate 

This installs virtualenv, creates the env folder in your project folder with a local copy of python, activates the virtual environment. Then, install the requirements via pip:

(env)$ pip install -r requirements.txt

####Database

To run the postgres server: download and run postgres.app (for mac).

Follow the instructions to set up postgres app (especially about setting your path).

Create the database, first in PostgreSQL:

$ psql
# CREATE DATABASE mrscdb;

Then in Python (make sure your virtualenv is activated):

(env)$ python -i model.py
(env)$ create_db()

####Finally, run the app:

(env)$ python app.py

Point your browser to: localhost:5000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published