A recipe book application built with Quasar and SQLite.
Note
You can skip this step and use the SQLite database file that's already in this repo.
Create a new SQLite database at the root of this project using the SQLite CLI.
sqlite3 recipe-bookIssue the following database schema.
CREATE TABLE IF NOT EXISTS recipes (
id VARCHAR PRIMARY KEY,
name VARCHAR NOT NULL,
nutrition_information TEXT,
instructions TEXT,
created_at INTEGER DEFAULT(CAST(UNIXEPOCH() AS INT)),
updated_at INTEGER DEFAULT(CAST(UNIXEPOCH() AS INT))
);
CREATE TABLE IF NOT EXISTS ingredients (
id VARCHAR PRIMARY KEY,
name VARCHAR NOT NULL,
measurements VARCHAR NOT NULL,
recipe_id VARCHAR NOT NULL,
created_at INTEGER DEFAULT(CAST(UNIXEPOCH() AS INT)),
updated_at INTEGER DEFAULT(CAST(UNIXEPOCH() AS INT)),
FOREIGN KEY(recipe_id) REFERENCES recipes(id)
);
CREATE INDEX IF NOT EXISTS idx_recipe_name on recipes(name);
CREATE INDEX IF NOT EXISTS idx_ingredient_name on ingredients(name);Quit the SQLite shell.
.quityarn
# or
npm installnpm run dev:dbquasar devyarn lint
# or
npm run lintyarn format
# or
npm run formatquasar build