An open API service indexing awesome lists of open source software.

https://github.com/bard/simple-flashcards


https://github.com/bard/simple-flashcards

Last synced: over 1 year ago
JSON representation

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