Blame view

README.md 3.04 KB
2d2c50cc9   Andrew Buss   updated README.md
1
  # Flashy 
34442ca72   Rohan Rangray   Dummy change to t...
2

1f7694345   Andrew Buss   fixed README.md f...
3
  Flashy is a realtime collaborative flashcard sharing app combined with a spaced-repetition study system. Flashy was developed by CSE 110 students in spring quarter 2015:
a7099dd7a   Andrew Buss   password minimum ...
4
   
25ceedc79   Rohan Rangray   Removed semanlear :(
5
6
7
8
9
10
11
12
13
14
   - lhawkins 
   - ckwang   
   - arnog    
   - abuss    
   - rray     
   - rlee     
   - mjeng    
   - kmach    
   - mrahman  
   - namtran  
2d2c50cc9   Andrew Buss   updated README.md
15
   
61ef8379b   Andrew Buss   readme note about...
16
17
  Flashy's code is divided among the flashy-backend repository (this one!) and the flashy-frontend repository. When running the local server, these repositories should be sibling directories and the flashy-frontend repository must be cloned into a directory of the same name. 
   
cf232414a   Andrew Buss   start writing fix...
18
  Flashy officially supports Ubuntu 14.04 with at least 2 GB of RAM. A VM is acceptable but performance may be impaired.
efc5b1355   Andrew Buss   clarify migration...
19

2d2c50cc9   Andrew Buss   updated README.md
20
  ## Installing Flashy on Ubuntu 14.04 (development/testing)
6d09e0d28   Andrew Buss   Clarified readme ...
21

1f7694345   Andrew Buss   fixed README.md f...
22
  We recommend installing Flashy on a fresh installation of Ubuntu 14.04. Before installing, make sure all packages are up to date:
72bf5f00c   Andrew Buss   Falcon puuuuuuuus...
23

2d2c50cc9   Andrew Buss   updated README.md
24
25
26
      sudo apt-get update
      sudo apt-get upgrade
      
1f7694345   Andrew Buss   fixed README.md f...
27
  It is important that Python 3 *not* be installed, as this causes issues when creating the virtualenv.
2d2c50cc9   Andrew Buss   updated README.md
28
29
   
  ### Install required packages
72bf5f00c   Andrew Buss   Falcon puuuuuuuus...
30

2d2c50cc9   Andrew Buss   updated README.md
31
      sudo apt-get install python-virtualenv redis-server git python-dev
cf232414a   Andrew Buss   start writing fix...
32
33
34
35
36
37
38
  
  ### Start Redis
  
      sudo service redis_6379 start
      echo PING | redis-cli
  
  Redis should respond PONG to the last command. 
2d2c50cc9   Andrew Buss   updated README.md
39
  ### Prepare installation directory
073d9c77a   Andrew Buss   Refactored requir...
40

2d2c50cc9   Andrew Buss   updated README.md
41
42
43
44
      mkdir ~/flashy/
      cd ~/flashy/
      
  ### Retrieve source
f6de63a1f   Andrew Buss   Tiny change to ge...
45

2d2c50cc9   Andrew Buss   updated README.md
46
  Clone the two repositories. Provide credentials in each case.
eb304424c   Andrew Buss   Actually removed ...
47

d5ad64cde   Andrew Buss   fixed git links
48
49
      git clone https://git.ucsd.edu/110swag/flashy-frontend.git
      git clone https://git.ucsd.edu/110swag/flashy-backend.git
efc5b1355   Andrew Buss   clarify migration...
50
      
2d2c50cc9   Andrew Buss   updated README.md
51
  ### Prepare backend environment
efc5b1355   Andrew Buss   clarify migration...
52

1f7694345   Andrew Buss   fixed README.md f...
53
  When running the setup script, gevent may take a while to install and throw several compiler warnings. These are expected.
2d2c50cc9   Andrew Buss   updated README.md
54
55
56
57
   
      cd flashy-backend
      scripts/setup.sh
      source venv/bin/activate
efc5b1355   Andrew Buss   clarify migration...
58
      python manage.py migrate
2d2c50cc9   Andrew Buss   updated README.md
59
60
61
      python manage.py loaddata sections
      
  ### Run backend server
eb304424c   Andrew Buss   Actually removed ...
62

2a72f1a8a   Andrew Buss   Development serve...
63
      scripts/run_local.sh
2d2c50cc9   Andrew Buss   updated README.md
64
      
cf232414a   Andrew Buss   start writing fix...
65
66
67
68
69
  You should be able to access the application at http://127.0.0.1:8080/app/
      
  ## Email on the Locally Server
  
  In production, Flashy uses AWS SES to send emails. However, we did not want to bundle the AWS key with the source of our app, so when run locally, Flashy falls back to the ConsoleBackend. In practice, this means that when run in development, emails will be printed to the terminal and not actually sent.
efc5b1355   Andrew Buss   clarify migration...
70
71
72
73
  
  ## Troubleshooting
  
  If you get errors about a module not being found, make sure you are working in the virtualenv. To enter the venv:
2d2c50cc9   Andrew Buss   updated README.md
74
      source venv/bin/activate
efc5b1355   Andrew Buss   clarify migration...
75
76
77
78
79
80
81
82
83
  
  If you still get errors about a module not being found, make sure your virtualenv is up to date. Re-run:
  
      scripts/setup.sh
      
  If you get errors about a missing column or table, make sure you have migrated:
  
      python manage.py migrate
      
2d2c50cc9   Andrew Buss   updated README.md
84
85
86
  ## Notes for Windows
  
  As on Linux, Redis must be installed and running on port 6379. 
1f7694345   Andrew Buss   fixed README.md f...
87
  Wherever venv/bin/ appears, use venv/Scripts instead. Virtualenv inexplicably creates a Scripts directory rather than bin on Windows
2d2c50cc9   Andrew Buss   updated README.md
88

e9c8bb743   Andrew Buss   added technical c...
89
90
91
92
  # Technical Contacts
  
  Andrew Buss - phone number on csesoftwaretools
  Rohan Rangray - phone number on csesoftwaretools