Giter Site home page Giter Site logo

dbms-fooddelivery's Introduction

DBMS-project

Food World Delivery

 

This project is a simple Order Delivery System example of popular e-commerce websites such as Amazon and Flipkart. An order management system (OMS) is a digital method of managing an order's lifetime. It keeps track of all information and processes, such as order entry, inventory management, fulfilment, and after-sales support. An OMS provides visibility to both the company and the buyer. The data in our project is easily retrievable. The interface is straightforward to use. The data is well safeguarded for personal use, and the processing is rapid.

Front end tools:

  • HTML, CSS, Bootstrap, Jinja : We used all these tools for creating the user interface.
  • Back end tools:
    • MySQL : The database at the backend uses MySql. MySQL is an open-source relational database management system.
    • Flask :It is a micro web framework for Python. Flask is used for the backend, but it uses a templating language called Jinja2, which is used to create HTML, XML or other markup formats that are returned to the user via an HTTP request.

Installation

  1. Create virtual environment :

    python3 -m venv ods_env

  2. Activate the virtual environment :

    source ods_env/bin/activate

  3. Chnage working directory to ODS and install the required libraries :

    python3 -m pip install -r requirements.txt

Usage

  1. Update the credentials in py_src/db.yaml file to connect to the mysql database. You will need to create a mysql user for this.

    CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
    GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
    (run the above commands in mysql root.)

  2. Change working directory to sql_src.

  3. Open mysql prompt using following command and enter password for the created user.

    mysql -u "username" -p

  4. Enter following commands on mysql prompt :

    source ods_ddl.sql

    This will create the required database ODS on the local system.

    source ods_dml.sql

    This command is optional. It adds some dummy data in the tables.

  5. Exit the mysql prompt and change working directory to py_src.

  6. Enter the command to run Flask :

    python3 app.py

  7. If the adress for binding is already in use

    kill -9 $(ps -A | grep python | awk '{print $1}')

 

Collaborator: Ruchira Ray

 

(reference: Swastat-Masta---ODS with pipeline improvements)

dbms-fooddelivery's People

Contributors

rayruchira avatar pallavi012000 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.