⚠️ Note : Before starting, you need npm, nodejs, sqlite3, flask-cors, Python3, Pip, and Flask.
Init DB (first install only)
# launch the db with sqlite
sqlite3 database/imacook.db
# create the tables
.read database/init.sql
# add fake useful data for debug
.read database/populate.sql
# testing, we should get 3 recipes
SELECT * FROM recipes;# exit
.exit
Init the front (first install only)
cd imacook
npm install
Launch App
# be sure you are in the root path (IMACOOK)# launch python/flask
flask --app app --debug run
# go in the front foldercd imacook
# setup api url (localhost in our case)
cp dist.env .env
# lauch the front
npm run dev