Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uvicorn api.main:app --reload --port 8000

Restaurant Ordering System

Welcome to the Restaurant Ordering System! This project provides a streamlined platform for managing restaurant menus and processing customer orders efficiently.

Features

  • Menu Management: Easily add, update, and remove menu items.
  • Order Processing: Handle customer orders with real-time updates.
  • Database Integration: Utilizes SQLite for data storage.

Getting Started

Follow these steps to set up and run the project on your local machine.

Prerequisites

Ensure you have the following installed:

  • Python 3.x
  • pip (Python package installer)

Installation

  1. Clone the Repository:

    git clone https://github.com/haroonqa/ResturantOrderingSystem.git

  1. Navigate to the Project Directory:

    cd ResturantOrderingSystem

  1. Install Required Packages:

    pip install -r requirements.txt

Database Setup

Initialize the database and apply migrations:

  1. Initialize the Database:

    python initialize_db.py

  1. Apply Migrations:

    alembic upgrade head

  1. Add Sample Menu Items (Optional):

    python add_sample_menu.py

Running the Application

Start the application using Uvicorn:

uvicorn api.main:app --reload --port 8000

The application will be accessible at http://localhost:8000.

API Endpoints

  • GET /menu: Retrieve all menu items.
  • POST /menu: Add a new menu item.
  • PUT /menu/{item_id}: Update an existing menu item.
  • DELETE /menu/{item_id}: Remove a menu item.
  • POST /order: Place a new order.
  • GET /order/{order_id}: Retrieve details of a specific order.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add your feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages