Kimkorng
DjanFood

DjanFood

django
py
tailwind
E-Commerce

The Mini Online Food Ordering System. This web application is designed to provide a seamless experience for users to browse and order delicious food items.

Features

  • Create New Food:

    • only Superusers who can add new food items to the system.
  • View All Foods:

    • Users can browse and view a list of all available food items.
  • Add to Cart:

    • Users can add selected food items to their shopping cart.
  • View Cart:

    • Users can view and manage items in their shopping cart.
  • User Authentication:

    • Register: Users can create new accounts.
    • Login: Users can log in to their accounts.
    • Change Password: Users can change their account passwords.
    • Update User Information: Users can update their profile information.

Technologies

This project uses the following technologies:

  • Django: A high-level Python web framework that encourages rapid development and clean, pragmatic design.
  • Tailwind CSS: A utility-first CSS framework that provides low-level utility classes to build designs directly in your markup.
  • HTML, CSS, and JavaScript: Fundamental technologies for building web applications.

Requirements

Make sure you have the following dependencies installed:

  • Python
  • Django
  • NodeJs

Installation

Clone the repository:

bash
git clone https://github.com/kimkorngmao/DjanFood.git cd DjanFood

Create a virtual environment:

bash
python -m venv venv

Activate the virtual environment:

  • On Windows:

    bash
    venv\Scripts\activate
  • On macOS and Linux:

    bash
    source venv/bin/activate

Install the required dependencies:

bash
pip install -r requirements.txt

Install Tailwind CSS dependencies

python manage.py tailwind install

Apply migrations:

bash
python manage.py migrate

Create a superuser (for creating new food items):

bash
python manage.py createsuperuser

Follow the prompts to set up the superuser account.

Usage

Run the development server:

bash
python manage.py runserver

Start Django Tailwind CSS:

bash
python manage.py tailwind start

Access the application in your web browser at http://localhost:8000.

Log in with the superuser credentials to create new food items.

Preview
djanfood Image preview 1djanfood Image preview 2djanfood Image preview 3djanfood Image preview 4djanfood Image preview 5djanfood Image preview 6djanfood Image preview 7djanfood Image preview 8djanfood Image preview 9