summaryrefslogtreecommitdiff
path: root/app/README.md
blob: a64624a37ed986861e83a79e1deca37a49f95f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
How to run EnglishPal
===========================



Hui Lan <hui.lan@cantab.net>
1 November 2019





Run it on a local machine
-------------------------

python3 main.py






Run it within Docker
--------------------

Assuming that docker has been installed...


ssh to ubuntu@118.25.96.118
cd to /home/lanhui/englishpal


# Get englishpal's docker container ID

sudo docker ps -a | less -S

# Stop service

sudo docker stop container-id


# Rebuild container. Run this after modifying the source code.
sudo docker build -t englishpal .

# Run the application
sudo docker run -d -p 90:80 -v /home/lanhui/englishpal/app/static/frequency:/app/static/frequency -v /home/lanhui/englishpal/app/static/:/app/static/ -t englishpal  # for permanently saving data
sudo docker run -d -p 90:80 -t englishpal # data will be lost after existing

# Save space.  Run it after sudo docker run
sudo docker system prune -a -f


# Other commands
sudo docker ps -a

sudo docker logs image_name, where image name could be obtained from sudo docker ps.

build.sh contains all the above commands.  Run "sudo ./build.sh" to rebuild the web application.



Update articles
---------------

pscp wordfreqapp.db lanhui@118.25.96.118:/home/lanhui/englishpal/app/static



Feedback
---------

Tianhua people
~~~~~~~~~~~~~~~~

Need a smart phone app.  I use phone a lot.

Can take a picture for text.  Automatic translation.

You cannot ask students to use computers.


Usability testing
~~~~~~~~~~~~~~~~~~~~~~

Respondent 1 --- Paid 10 yuan

“成为会员”改成“注册”

“登出”改成“退出”

“收集生词吧”改成“生词收集栏”

***不要自动显示下一篇

需要有“上一篇”、“下一篇”

Internal server error when register using an email address.