From fb43e9dfb4da12b6a12973b89d03f456aaaa752f Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sat, 17 Jul 2021 09:47:17 +0800 Subject: [PATCH] README.md: Update articles. --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2be5ad1..f117965 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,13 @@ build.sh contains all the above commands. Run "sudo ./build.sh" to rebuild the Update articles --------------- -All articles are stored in a SQLite file called +All articles are stored in the `article` table in a SQLite file called `app/static/wordfreqapp.db`. +### Adding new articles + +To add articles, open and edit `app/static/wordfreqapp.db` using DB Browser for SQLite (https://sqlitebrowser.org). + Export wordfreqapp.db to wordfreqapp.sql using the following commands: - sqlite3 wordfreqapp.db @@ -86,9 +90,12 @@ Export wordfreqapp.db to wordfreqapp.sql using the following commands: Put wordfreqapp.sql (not wordfreqapp.db) under version control. -Create wordfreqapp.db using this command: `cat wordfreqapp.sql | -sqlite3 wordfreqapp.db`. Delete wordfreqapp.db first it if exists. +### Creating SQLite file from wordfreqapp.sql +Create wordfreqapp.db using this command: `cat wordfreqapp.sql | +sqlite3 wordfreqapp.db`. Delete wordfreqapp.db first if it exists. + +### Uploading wordfreqapp.db pscp wordfreqapp.db lanhui@118.25.96.118:/home/lanhui/englishpal/app/static