Juice Shop StorefrontFRONTEND
It is an Angular app showing products, search, reviews, basket and checkout with coupons and wallet, login with remember-me and Google sign-in, two-factor entry, order tracking, profile pages, a crypto-wallet sandbox and a guided hacking tutorial. The route that serves the built front page always sends one fixed file, which is safe.
Shop RequestsAPI
It handles login, registration, search, baskets, orders with PDF receipts, reviews, wallets, coupons, complaint uploads, 2FA, a chat assistant, data export and erasure, and also auto-generates standard create/read/update/delete routes for many models.
Shopper LoginAUTH
It issues and checks JSON Web Tokens at /rest/user/login, applies guards like isAuthorized() on baskets, cards, orders and the B2B API, supports phone-code 2FA via otplib, keeps logged-in users in memory, and offers Google sign-in. Several routes trust what the visitor sends instead of what the server knows.
Customers and OrdersDATABASE
It stores users with roles and hashed passwords, baskets, saved addresses and cards, wallets, delivery options, security answers, feedback, complaints, reviews and challenge progress, reached through Sequelize models and MongoDB queries.
Shop SettingsCONFIG
It reads the config package for the app name, domain and challenge options, uses environment variables like PORT and BASE_PATH, validates settings at startup (a healthy practice that stops the app if they contradict each other), and sets cookie, CORS, rate limit and security header rules.
Web, Login & Crypto ToolsLIBRARIES
Express runs the web server, Sequelize and SQLite handle the database, jsonwebtoken and express-jwt handle login passes, sanitize-html cleans text, Angular and Angular Material build the pages, otplib creates 2FA codes, pdfkit draws receipts, multer and unzipper handle uploads, and ethers and wagmi support wallet features.