5 POST /candidates {"name":string} -> {"id":number,"name":string}
7 GET /candidates -> [{"id":number,"name":string}]
9 POST /vote {"id":number}
10 GET /report -> [{"id":number,"name":string,"votes":number}]
13 --------------------------------------------------------------------------------
18 Primero hay que [instalar sqlite](https://codigofacilito.com/articulos/configurando-sqlite).
20 En mi caso ([termux](https://termux.dev/en/)), el comando para instalar SQLite es:
26 Controlar que SQLite esté [habilitado en PHP](https://www.php.net/manual/es/sqlite3.installation.php).
29 $ php -i | grep -i 'sqlite' | grep -i 'ena'
30 PDO Driver for SQLite 3.x => enabled
31 SQLite3 support => enabled
34 Crear la base de datos con el siguiente comando:
37 $ sqlite3 database.sqlite < votar.sql
40 En la siguiente página se puede aprender un poco más sobre SQLite: [SQLite PHP](https://desarrolloweb.com/articulos/sqlite-php).
42 --------------------------------------------------------------------------------
47 Build (docker/container) image
58 docker run --tty --interactive --rm \