Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/titsuki/nuxt3-korean-typing-game
A Korean typing game powered by nuxt3
https://github.com/titsuki/nuxt3-korean-typing-game
Last synced: 10 days ago
JSON representation
A Korean typing game powered by nuxt3
- Host: GitHub
- URL: https://github.com/titsuki/nuxt3-korean-typing-game
- Owner: titsuki
- License: apache-2.0
- Created: 2024-02-18T09:48:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-18T11:24:25.000Z (11 months ago)
- Last Synced: 2024-11-05T21:50:25.067Z (about 2 months ago)
- Language: Vue
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nuxt3 Korean Typing Game
This repository contains a korean typing game powered by nuxt3.
## Usage
### Build Korean Phrase Database
NOTE: Since this Anki deck is licensed under Shared Deck License [0], I couldn't share it directly.
+ 1. Download "TTMIK's First 500 Korean Words by Retro": https://ankiweb.net/shared/info/1551455917
+ 2. Unzip the apkg file:```
$ mkdir ttmik500 && cd ttmik500
$ unzip Korean_Vocabulary_by_Evita.apkg
```+ 3. Build a SQLite database:
```
$ echo "select flds from notes" | sqlite3 collection.anki2 | raku -ne 'say $0.Str.subst(" ", :g) if $_ ~~ /\(.+?)\<\/b\>/' > kr.txt
$ echo "select flds from notes" | sqlite3 collection.anki2 | raku -ne 'say $1.Str.subst(" ", :g).trim.subst(/^\((.+)\)/,"").subst("", "").subst(//,"",:g).trim if $_ ~~ /\(.+?)\<\/b\>(<-[\[]>+)/' > en.txt
$ paste -d$'\t' kr.txt en.txt | raku -e 'for $*IN.lines.pairs -> (:key($k), :value($v)) { say "$k\t$v" }' > data.tsv
$ printf 'create table phrase (id integer primary key, kr text, en text);\n.separator "\t"\n.import data.tsv phrase' | sqlite3 database.sqlite3
```+ 4. Put database.sqlite3 into the `/prisma` dir
### Run
```
$ npx prisma generate
$ npm run dev
```# Citations
+ [0] https://ankiweb.net/account/terms