By the end of this tutorial you will have a working full-stack e-commerce application with: A Flask REST API (products, auth, orders, admin) A React + Vite frontend (shop, cart, account, orders, admin dashboard) bcrypt password hashing SQLite database (zero config, runs locally) A cart persisted in localStorage No prior Flask or React experience is assumed, but you should be comfortable running commands in a terminal. Table of Contents Project Structure Backend β Flask Install & bootstrap Database setup Auth routes Product routes Checkout & orders Admin routes Full backend code Frontend β React + Vite Create the project App shell Pages Full frontend code Running the app Security checklist before going live Project Structure ecommerce/ βββ app.py β entire Flask backend βββ shop.db β SQLite DB (auto-created on first run) βββ frontend/ βββ index.html βββ src/ βββ api.js βββ main.jsx βββ App.jsx βββ pages/ βββ Home.jsx βββ Shop.jsx βββ Cart.jsx βββ Account.jsx βββ Orders.jsx βββ Admin.jsx Backend β Flaskβ¦