https://github.com/bard/simple-flashcards
https://github.com/bard/simple-flashcards
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bard/simple-flashcards
- Owner: bard
- Created: 2025-01-08T23:13:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-08T23:14:24.000Z (over 1 year ago)
- Last Synced: 2025-03-19T22:07:36.726Z (over 1 year ago)
- Language: TypeScript
- Size: 257 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple flashcard app.
It was written as counterpart to [ai-flashcards](https://github.com/bard/ai-flashcards) and to experiment with AI-assisted coding. It was bootstrapped with [bolt.new](https://bolt.new/) and is almost entirely coded through prompting with [aider](https://aider.chat/).
## Running
```sh
git clone https://github.com/bard/simple-flashcards
cd simple-flashcards
pnpm install
cp .env.example .env
# optionally edit .env
pnpm dev
```
## Importing flashcards
Flashcards must be in CSV format.
```sh
curl -X POST -H 'content-type: text/csv' \
-H 'x-api-key: bigsecret' \
--data-binary '@/tmp/flashcards.csv' \
http://localhost:3000/api/admin/db/load
```