0
0
Fork 0
EnglishPal/app
vicky-ZhuWenqi 643e0c4eee
Update pickle_idea.py
在生词簿每个单词后面,加上两个按钮,熟悉与不熟悉。如果点熟悉,就将生词簿中该单词后面记录的添加次数减一,直至减为0,就将该单词从生词簿中移除;如果点不熟悉,就将生词簿中该单词后面记录的添加次数加一。
2021-05-31 08:48:03 +08:00
..
static Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
templates Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
test Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
README.md Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
UseSqlite.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
WordFreq.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
build.sh Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
difficulty.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
main.py Update main.py 2021-05-31 08:46:34 +08:00
pickle_idea.py Update pickle_idea.py 2021-05-31 08:48:03 +08:00
pickle_idea2.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00
wordfreqCMD.py Publish EnglishPal source code 2021-04-06 16:22:03 +08:00

README.md

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

Stop service

sudo service docker restart

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 -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.