Coder Social home page Coder Social logo

dayanandraut / online-store Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 1.04 MB

Online portal where customers can register their daily need items with nearby shops (online payment facility for home delivery)

HTML 9.62% PHP 75.85% Python 11.16% CSS 3.37%
online-store-website nearby-shops online-payment

online-store's Introduction

Online Store

Problem Statement

Design and develop an online portal where a customer can register to the nearby retailer and order daily need items. Develop the provision for the online payment system for home delivery.

How to map the customer with the nearest retailer shop?

Tools and Technologies

  • PHP
  • Python
  • MySQL
  • HTML
  • CSS

How to run this project on your system

Software Requirements : Xampp (for windows) or LAMP (for Linux)

  • Download the project and keep it in xampp folder for your system
  • Run Xampp control panel and run apache and mysql
  • Open localhost in your browser and then open phpMyAdmin
  • Create a new database onlinestore and import tables from the database/onlinestore.sql file
  • Now open localhost/xampp/onlinestore in your browser

Modules

Customer module:

  • Customer can register/login into the portal.
  • He/she can search for product according to his/her need.
  • The customer can place the order in basket.

Retailer module:

  • Retailer can login on the portal.
  • Retailer can see the orders placed by the customer.
  • Retailer have choice to deliver the product items to customer address .

Home Page

home page

  • A customer can login if he/she already has an account.
  • Otherwise, they can register by clicking on Register link
  • Similarly, a retailer can login by clicking on Retailer link on menu bar

Customer Registration page

registration page

  • Address (coordinates) of the customer is picked automatically once the customer pin points his/her location in the map.
  • This address is used to map the customer to the nearest retailer.
  • Upon successfull registration, the customer gets Rs 1000 in his/her wallet

Customer Login

customer login page

  • After login, the customer can see his/her name and the balance in the wallet in the menu bar
  • He/She can search product and place order
  • With each order or cancellation of order, the balance of the wallet is updated accordingly
  • If the balance is not sufficient, the customer won't be able to order

Search Product

search product page

  • A customer can search products and put them into basket

Basket

basket page

  • All the products added by customer will be in the basket. These products will be delivered.
  • The customer can change the number of quantity or remove the product from the basket. The balance in the wallet will be updated accordingly.

Retailer

retailer login 1 page

retailer login 2 page

  • Once retailer logs in, he/she can see all the orders to be delivered to the customers. He can deliver the product by clicking on deliver button

Challenge: How to map the customer with the nearest retailer shop?

  • Using naïve approach, finding all the distances and taking minimum distance would take O(n) time.
  • For reducing T.C. we stored the coordinates of retailer in the K-Dimensional tree. Here we took 2D tree because we had only latitude and longitudes.
  • Insert in 2D tree takes O(log n) time and searching nearest retailer to a customer will also take O(log n) time. 

References

Feedback

You feedbacks are always welcome. Thanks for reading.

online-store's People

Contributors

dayanandraut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.