Skip to content

WinTush/littlelemon

Repository files navigation

Little Lemon Bistro

The Little Lemon bistro website is a Django-based project that allows users to view the menu and make reservations online. It utilizes the Django Rest Framework (DRF) for API endpoints.

Features

  • View Menu: Users can view the bistro's current menu by going to /api/menu.
  • Make Reservations: Users can create new reservations at /api/booking.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Ensure you have Python 3.8 or later installed on your system. You can download it here.

Installation Steps

  1. Clone this repository:

    git clone https://github.com/WinTush/littlelemon.git
    cd littlelemon/
  2. Create a virtual environment:

    • On macOS and Linux:

      python3 -m venv env
    • On Windows:

      py -m venv env
  3. Activate the virtual environment:

    • On macOS and Linux:

      source env/bin/activate
    • On Windows cmd shell:

      .\env\Scripts\activate
  4. Install requirements from requirements.txt file using pip:

    pip install -r requirements.txt
  5. Apply migrations as follows:

    python manage.py migrate
  6. Run the server locally using the command below, then navigate to http://localhost:8000/api/menu or http://localhost:8000/api/booking in any web browser:

    python manage.py runserver

Testing

We use pytest for our tests.

To run tests, execute:

pytest

Enjoy exploring Little Lemon Bistro!

About

Website for the Little Lemon bistro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published