Calendar is a project to provide easy access to campus events at a centralized location.
We use vagrant to run our server. First install vagrant, and then run vagrant up
to provision the virtual machine for you.
Once vagrant is setup, run:
vagrant ssh
cd /vagrant
source config/settings.dev
and you should be good to go.
To setup the database, run
python create.py
To run the server, run:
python run.py
If you want to run the event updater every 30 minutes, run:
celery worker -A cal.celery & python run.py
Try to avoid running this, since killing Celery is annoying. When finished, run:
ps
and kill the processes with the name "celery":
kill -9 <process-id>
I recommend running the database setup script to refresh the data.
Running create.py will fill the database with real data.
Supported routes currently include:
/ : Calendar homepage with upcoming events
/events : Returns all events [For development purposes, will be removed eventually]
For now, we get events from Facebook using their API. The Facebook groups that we get events from are listed cal/fb.py
|-- config/ (config settings and install scripts)
|-- README.md (This file)
|-- run.py (runs the server)
|-- cal/
\
|-- __init__.py (Sets up Flask app)
|-- schema.py (Our SQLAlchemy ORM schema)
|-- fb.py (Facebook utilities)
|-- groups.yml (Contains the clubs' information)
|-- logs/ (Log files will be added here)
|-- static/ (Your static files, such as js, css, imgs)
|-- templates/ (Flask Jinja2 templates)
- Alan Du
- David Hao
- Pooja Kathail
- Kevin Lin
- Emily Pakulski
- Angela Wang
test