1.
E-Commerce Website Simulation – Frontend Application
Objective:
Develop a frontend-based E-Commerce Website Simulation that supports
interactions between two types of users:
1. Users (Customers) – Browse products, add items to the cart, and make
purchases.
2. Vendors (Sellers) – Upload and manage product listings while tracking
transactions.
Functional Requirements:
1. Vendor Functionalities:
● Product Management:
○ Vendors can add new products with details such as:
■ Product Title
■ Description
■ Price
■ Category
■ Product Image (if applicable)
■ Image
○ Vendors can edit or update product details.
○ Vendors can delete products from their catalog.
○ Url for vendor to upload product data: Sample Data
● Transaction Tracking:
○ Vendors can view sales history, including purchased products and
order timestamps.
2. User Functionalities:
● Product Browsing & Shopping:
○ Users can view available products uploaded by vendors.
○ Users can search and filter products based on criteria such as price,
category, or availability.
○ Users can add products to their cart and remove items if needed.
○ Users can proceed to checkout and confirm purchases.
● Order History:
○ Users can view past orders, including order ID, product details, and
timestamps.
3. Data Storage & Backend Considerations:
● The application will primarily be a frontend-based solution.
● Data can be stored using:
○ LocalStorage
○ IndexedDB
○ Firebase (optional)
● API Implementation is optional – If desired, the developer may implement
APIs to handle product management and transactions.
This project focuses on building a functional and interactive frontend application
that enables users to shop and vendors to manage products, with a flexible
approach to data storage
[Link] Trading Simulation Task
Design a system where multiple users can trade stocks in real-time, take loans, and
track profits/losses.
Key Features:
● Store trading (buy/sell) transaction data, stock registration data, user balance,
stock price history, stocks available information using a database ( SQLite,
MySQL, PostgreSQL, MongoDB, etc) or CSV/JSON.
● Implement APIs for stock management, trading, loans, and analytics.
● Simulate real-time stock price updates every 5 minutes. (stock price always
between 1 to 100)
● Enforce trading rules: users stop when loans are exhausted.
● Generate reports on user performance and stock trends.
Task:
Develop and implement this system, ensuring efficient handling of transactions, real-
time updates, and user analytics.
Implement following REST APIs for stock trading functionalities using Swagger for API
documentation, implement a background function to update stocks price every 5 mins, and
also implement a test function to simulate 5 to 10 users trading simultaneously.
API Endpoints:
1. Stock Management
○ POST /stocks/register → Register a new stock with stock,
available quantity and price.
○ GET /stocks/history → Retrieve stock price history.
2. Loan Management
○ POST /users/loan → Allow users to take a loan if eligible. (max
laon amount: 100000)
3. Trading Operations
○ POST /users/buy → Buy stocks based on price and availability.
○ POST /users/sell → Sell owned stocks.
4. Analytics & Reporting
○ GET /users/report → Fetch user profit/loss report.
○ GET /stocks/report → Get stock-wise performance report.
○ GET /users/top → List top-performing users.
○ GET /stocks/top → List top-performing stocks.