-
Notifications
You must be signed in to change notification settings - Fork 2
Slivka Points Center Documentation
Congratulations on becoming Vice President of Slivka. I have taken the liberty of automating your job. Your mission, should you choose to accept it, is to acquire the skills necessary to maintain the system I put in place. If you're feeling adventurous, you can even improve upon it.
-
The Basics
- Accessing the Internals of SPC
- Accessing the Web Interface
-
Common Task Walkthroughs
- Term Transition
- Pre-Spring Quarter Setup
- Housing Selection
- Fixing an Event Submission
- Deleting an Event Submission
- Committee Points
-
Advanced Usage
- Setting up a local environment
- Git
- MAMP
- Guide to the Three Layers of SPC's Web Infrastructure
- Data Query Layer (Javascript, HTML, CSS)
- Data Manipulation Layer (PHP)
- Data Description Layer (SQL)
- Committing Changes
- Setting up a local environment
While you can go down to the slivka server and plug in a monitor/keyboard every time you want to make changes, I highly recommend you gain basic knowledge of navigating a command line. That last sentence was daunting, you can do this!
Command Line:
- Mac: Just use Terminal.app
- Windows: You need to install Cygwin with OpenSSH. Google it. Ask your local computer wizard for assistance.
- ssh - secure shell, it connects you to the slivka web server
- ls - lists files in the current directory
- cd - change directory, ".." is parent directory, "." is current directory
- vim/nano/emacs - these are all command-line text editors. Most computer nerds will tell you vim is the best, but I'm partial to nano
- git - this is the version control system used with SPC. Only for advanced users.
- ssh slivkait@slivka.northwestern.edu
- Enter password when prompted
- cd /var/www/points/
Most of the time you won't need to access the internal files of SPC, and instead just need to make small tweaks to the points. There is a nifty web interface to access this.
http://slivka.northwestern.edu/phpadmin
Be careful when you use this tool, as you can do a lot of damage if you're trying to modify more than one entry at a time.
- Update the Directory
- Add "qtr_final" values to anyone not living in Slivka in the fall
- Add incoming freshmen to the database
- Update "suite" of everyone living in Slivka in the fall
Adding incoming freshmen Usually some time over the summer, freshmen will start joining the facebook group. When more than half have joined, I started going through the list and searching their names on the NU Directory. As soon as you can verify their NU Email you can add them to the directory.
Pre-Quarter To-Do List
Add quarter to quarters table
You never want to modify the files of a website in production directly if you can avoid it. So whenever I wanted to make a change to SPC, I'd do it on a local copy of the site first, test it, then send it over to the live site.
I use Github to keep a version history of every change I make to SPC files. Github uses the version control program called git. You can either install git onto your computer or use github's client software.
https://help.github.com/articles/set-up-git
Now that you have the files, you need to create your own version of the server. For macs, there is this program called MAMP that stands for Mac, Apache, Mysql, PHP. These are the exact tools I use for SPC, so it is super convenient.
http://mamp.info/en/index.html (The free version)
You don't need any fancy IDE (integrated development environment), all you need is a text editor. I recommend Sublime Text 2.
Look! A pretty visualization of the SPC database Schema! Click me!