Commit e9c8bb7437bc7452d09879d86b4b8c7b80585391
1 parent
cf232414a1
Exists in
master
added technical contacts; fix first user fixture
Showing 2 changed files with 11 additions and 0 deletions Inline Diff
README.md
View file @
e9c8bb7
# Flashy | 1 | 1 | # Flashy | |
2 | 2 | |||
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: | 3 | 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: | |
4 | 4 | |||
- lhawkins | 5 | 5 | - lhawkins | |
- ckwang | 6 | 6 | - ckwang | |
- arnog | 7 | 7 | - arnog | |
- abuss | 8 | 8 | - abuss | |
- rray | 9 | 9 | - rray | |
- rlee | 10 | 10 | - rlee | |
- mjeng | 11 | 11 | - mjeng | |
- kmach | 12 | 12 | - kmach | |
- mrahman | 13 | 13 | - mrahman | |
- namtran | 14 | 14 | - namtran | |
15 | 15 | |||
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. | 16 | 16 | 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. | |
17 | 17 | |||
Flashy officially supports Ubuntu 14.04 with at least 2 GB of RAM. A VM is acceptable but performance may be impaired. | 18 | 18 | Flashy officially supports Ubuntu 14.04 with at least 2 GB of RAM. A VM is acceptable but performance may be impaired. | |
19 | 19 | |||
## Installing Flashy on Ubuntu 14.04 (development/testing) | 20 | 20 | ## Installing Flashy on Ubuntu 14.04 (development/testing) | |
21 | 21 | |||
We recommend installing Flashy on a fresh installation of Ubuntu 14.04. Before installing, make sure all packages are up to date: | 22 | 22 | We recommend installing Flashy on a fresh installation of Ubuntu 14.04. Before installing, make sure all packages are up to date: | |
23 | 23 | |||
sudo apt-get update | 24 | 24 | sudo apt-get update | |
sudo apt-get upgrade | 25 | 25 | sudo apt-get upgrade | |
26 | 26 | |||
It is important that Python 3 *not* be installed, as this causes issues when creating the virtualenv. | 27 | 27 | It is important that Python 3 *not* be installed, as this causes issues when creating the virtualenv. | |
28 | 28 | |||
### Install required packages | 29 | 29 | ### Install required packages | |
30 | 30 | |||
sudo apt-get install python-virtualenv redis-server git python-dev | 31 | 31 | sudo apt-get install python-virtualenv redis-server git python-dev | |
32 | 32 | |||
### Start Redis | 33 | 33 | ### Start Redis | |
34 | 34 | |||
sudo service redis_6379 start | 35 | 35 | sudo service redis_6379 start | |
echo PING | redis-cli | 36 | 36 | echo PING | redis-cli | |
37 | 37 | |||
Redis should respond PONG to the last command. | 38 | 38 | Redis should respond PONG to the last command. | |
39 | 39 | |||
### Prepare installation directory | 40 | 40 | ### Prepare installation directory | |
41 | 41 | |||
mkdir ~/flashy/ | 42 | 42 | mkdir ~/flashy/ | |
cd ~/flashy/ | 43 | 43 | cd ~/flashy/ | |
44 | 44 | |||
### Retrieve source | 45 | 45 | ### Retrieve source | |
46 | 46 | |||
Clone the two repositories. Provide credentials in each case. | 47 | 47 | Clone the two repositories. Provide credentials in each case. | |
48 | 48 | |||
git clone https://git.ucsd.edu/110swag/flashy-frontend | 49 | 49 | git clone https://git.ucsd.edu/110swag/flashy-frontend | |
git clone https://git.ucsd.edu/110swag/flashy-backend | 50 | 50 | git clone https://git.ucsd.edu/110swag/flashy-backend | |
51 | 51 | |||
### Prepare backend environment | 52 | 52 | ### Prepare backend environment | |
53 | 53 | |||
When running the setup script, gevent may take a while to install and throw several compiler warnings. These are expected. | 54 | 54 | When running the setup script, gevent may take a while to install and throw several compiler warnings. These are expected. | |
55 | 55 | |||
cd flashy-backend | 56 | 56 | cd flashy-backend | |
scripts/setup.sh | 57 | 57 | scripts/setup.sh | |
source venv/bin/activate | 58 | 58 | source venv/bin/activate | |
python manage.py migrate | 59 | 59 | python manage.py migrate |
flashcards/test_fixtures/userx_in_test101.py
View file @
e9c8bb7
File was created | 1 | from flashcards.models import * | ||
2 | ||||
3 | ||||
4 | def apply(): |