Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 1.47 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.47 KB

search

App to search past CS 61B materials for studying and review. Inspired by the instant search on cs61a.org. Continuation of the work from here.

Meteor stuff in in app/, a MongoDB populator and some scrapers in utils/

Setup

  1. Get Meteor
  2. In app/:
  • Run meteor npm install
  • Run meteor. You can keep this running as you make changes; Meteor automatically refreshes the web server.
  1. If you want some example links:
  • Run python utils/seed_from_scrapers.py while meteor is running. This will populate your local Mongo database with some previous semesters' links.

File Structure

  • imports/api - Model layer for object CRUD
  • imports/ui/components - directories divided by component name
    • layout defines overall layout and wraps individual templates
      • Global events or helpers should go in layout.js
    • Controller logic + Blaze template should only go in its directory
    • Component-specific CSS should go in corresponding folder and be imported by corresponding .js file
  • imports/ui/routes.js - Routes are here
  • server - imports
  • More notes from Meteor docs

Misc.