Skip to content

A sample eCommerce app that allows a vendor to create a shop and sell on the platform

License

Notifications You must be signed in to change notification settings

GitauHarrison/maliMALI-marketplace-using-flask

Repository files navigation

GitHub Open Issues GitHub Closed Issues GitHub Pull Request Open GitHub Pull Request Closed GitHub forks GitHub Stars

maliMALI Marketplace

eCommerce App

Overview

This is a basic eCommerce app. Vendors can sell items on the platform while customers can shop for these items. Card and MPesa Payment integration is added to complete the purchase cycle.

Table of Contents

Features

  • Basic user authentication
  • Database management
  • Lipa Na Mpesa (pay using Mpesa)
  • Get free airtime upon completing a purchase
  • Geocomplete during search
  • Find vendors near you

Technologies Used

  • Flask micro-framework
  • Python, JavaScript for programming
  • Lipa Na MPesa API
  • Airtime API (Africa's Talking)
  • Google Maps API
  • SQLite for the database

Additional Details

Db Schema Design UI Design Deployment Contributors Tests
drawSQL Figma Render GitHub Contributors Tests

Application Details

Application users:

  • Admin

    • Creates the vendors after verifying their details
    • Only an admin can add a vendor
    • The assumption here is that the admin verifies the vendor before onboarding
  • Vendor:

    • Creates products he wants to sell
  • Customer:

    • Purchases products they want

To test the live app, use these credentials (if you don't want to create your own):

  • Admin:

    • Username: harry
    • Password: ecommerceapp123
  • Vendor:

    • Username: tanya
    • Password: ecommerceapp123
  • Customer:

    • Username: taste
    • Password: ecommerceapp123

Testing It Locally

  • Clone this repo:

    $ git clone git@github.com:GitauHarrison/maliMALI-marketplace-using-flask.git
  • Change directory into the cloned repo:

    $ cd maliMALI-marketplace-using-flask
  • Create and activate a virtual environment

    # Using virtualenvwrapper
    $ mkvirtualenv venv
    
    # Normal way
    $ python3 -m venv venv
    $ source venv/bin/activate
  • Install needed dependancies:

    (venv)$ pip3 install -r requirements.txt
  • Add and update environment variables in a .env file as seen in .env-template:

    (venv)$ cp .env-template .env
  • Start the flask server:

    (venv)$ flask run
  • Check the application in your favourite browser by pasting http://127.0.0.1:5000.

forthebadge forthebadge forthebadge forthebadge forthebadge

About

A sample eCommerce app that allows a vendor to create a shop and sell on the platform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published