- php (Windows users may require some additional steps. See here)
- sqlite
- php-sqlite
- Install the above requirements.
- Find your
php.inifile & uncomment the lineextension=pdo_sqlite. (Located in/etc/php/on Linux)
git clone https://github.com/dinesh-58/cardsQL.git
cd cardsQL
php -S localhost:8000
sqlite3 cardsql.db < commands.sql # create required db file & tablesThen, open localhost:8000 in your browser.
Note
If you use a separate port number, URL, you may want to update BASE_URL in bootstrap.php
cardsql-demo.mp4
- Follow Usage to setup the project
- You may also want to enable php error display. Set these in your
php.inifile.display_errors = On display_startup_errors = On
- Create a separate branch for features & open PRs against main
- To connect to the sqlite db w/ php, alwyas use the given function in
utils - Use PDO for db-related operations
- When database schema changes, make sure you pull the latest changes, then delete
cardsql.dband runsqlite3 cardsql.db < commands.sql




