You can view the project on Code.org.
This project is an online shopping platform designed to make users' lives more convenient during the pandemic. Users can shop online, and administrators can easily manage products through a console. Key features include:
- Adding and removing items from the cart
- Validating credit card numbers
- Tracking stock quantities
- Earning promo codes through a lottery system
- Admin console for managing products
- Shopping Cart Management: Users can add and remove items from their cart, ensuring they do not exceed available stock.
- Credit Card Validation: The system checks for valid credit card numbers during checkout.
- Stock Management: Admins can manage product stock and pricing through a console interface.
- Promo Code System: Users can earn promo codes through a lottery section for discounts.
- Admin Console: Admins can log in to add new products or update existing ones.
You can paste the embed code into an HTML page to display the project on a webpage.
<iframe width="392" height="620" style="border: 0px;" src="https://studio.code.org/projects/applab/uhcPOSCda3ny1iUD8Yc9vYAxw3I-NMX1e3HxMbBegyg/embed?nosource"></iframe>
- Shopping: Select a category and item, specify the quantity, and add items to your cart.
- Checkout: Click on the checkout button to proceed with payment. Enter your credit card details for validation.
- Promo Codes: Visit the lottery section to try and earn a promo code.
- Admin Access:
- Click the "Lottery" button on the start screen.
- Enter
//admin//
in the promo code output text area. - Log in with username
admin
and password12345
.
Here are some screenshots of the application:
index.html
: The main HTML file containing the structure of the web application.code.js
: JavaScript file with all the functionalities and event handlers.style.css
: CSS file for styling the application.
- Zhengyu (Joey) Wang
- Code.org for providing the platform to build this project.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.