Skip to content

gabriellet/calendar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar

Build Status

Calendar is a project to provide easy access to campus events at a centralized location.

Development Setup

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.

Local Dev

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.

Importing Dev Data

Running create.py will fill the database with real data.

Routes

Supported routes currently include:

/       : Calendar homepage with upcoming events
/events   : Returns all events [For development purposes, will be removed eventually]

Data Sources

For now, we get events from Facebook using their API. The Facebook groups that we get events from are listed cal/fb.py

app structure

|-- 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)

Developers

  • Alan Du
  • David Hao
  • Pooja Kathail
  • Kevin Lin
  • Emily Pakulski
  • Angela Wang

test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.6%
  • JavaScript 33.6%
  • Shell 3.3%
  • CSS 2.9%
  • HTML 2.6%