Blame view
README.md
3.04 KB
2d2c50cc9
|
1 |
# Flashy |
34442ca72
|
2 |
|
1f7694345
|
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
|
4 |
|
25ceedc79
|
5 6 7 8 9 10 11 12 13 14 |
- lhawkins - ckwang - arnog - abuss - rray - rlee - mjeng - kmach - mrahman - namtran |
2d2c50cc9
|
15 |
|
61ef8379b
|
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
|
18 |
Flashy officially supports Ubuntu 14.04 with at least 2 GB of RAM. A VM is acceptable but performance may be impaired. |
efc5b1355
|
19 |
|
2d2c50cc9
|
20 |
## Installing Flashy on Ubuntu 14.04 (development/testing) |
6d09e0d28
|
21 |
|
1f7694345
|
22 |
We recommend installing Flashy on a fresh installation of Ubuntu 14.04. Before installing, make sure all packages are up to date: |
72bf5f00c
|
23 |
|
2d2c50cc9
|
24 25 26 |
sudo apt-get update sudo apt-get upgrade |
1f7694345
|
27 |
It is important that Python 3 *not* be installed, as this causes issues when creating the virtualenv. |
2d2c50cc9
|
28 29 |
### Install required packages |
72bf5f00c
|
30 |
|
2d2c50cc9
|
31 |
sudo apt-get install python-virtualenv redis-server git python-dev |
cf232414a
|
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
|
39 |
### Prepare installation directory |
073d9c77a
|
40 |
|
2d2c50cc9
|
41 42 43 44 |
mkdir ~/flashy/ cd ~/flashy/ ### Retrieve source |
f6de63a1f
|
45 |
|
2d2c50cc9
|
46 |
Clone the two repositories. Provide credentials in each case. |
eb304424c
|
47 |
|
d5ad64cde
|
48 49 |
git clone https://git.ucsd.edu/110swag/flashy-frontend.git git clone https://git.ucsd.edu/110swag/flashy-backend.git |
efc5b1355
|
50 |
|
2d2c50cc9
|
51 |
### Prepare backend environment |
efc5b1355
|
52 |
|
1f7694345
|
53 |
When running the setup script, gevent may take a while to install and throw several compiler warnings. These are expected. |
2d2c50cc9
|
54 55 56 57 |
cd flashy-backend scripts/setup.sh source venv/bin/activate |
efc5b1355
|
58 |
python manage.py migrate |
2d2c50cc9
|
59 60 61 |
python manage.py loaddata sections ### Run backend server |
eb304424c
|
62 |
|
2a72f1a8a
|
63 |
scripts/run_local.sh |
2d2c50cc9
|
64 |
|
cf232414a
|
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
|
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
|
74 |
source venv/bin/activate |
efc5b1355
|
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
|
84 85 86 |
## Notes for Windows As on Linux, Redis must be installed and running on port 6379. |
1f7694345
|
87 |
Wherever venv/bin/ appears, use venv/Scripts instead. Virtualenv inexplicably creates a Scripts directory rather than bin on Windows |
2d2c50cc9
|
88 |
|
e9c8bb743
|
89 90 91 92 |
# Technical Contacts Andrew Buss - phone number on csesoftwaretools Rohan Rangray - phone number on csesoftwaretools |