{"id":24333380,"url":"https://github.com/ericgitangu/django-fullstack","last_synced_at":"2025-03-11T13:47:19.978Z","repository":{"id":219715302,"uuid":"749693293","full_name":"ericgitangu/django-fullstack","owner":"ericgitangu","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-15T23:32:37.000Z","size":3479,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T03:15:14.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgitangu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-29T07:53:18.000Z","updated_at":"2024-02-07T21:36:14.000Z","dependencies_parsed_at":"2024-01-29T11:11:43.809Z","dependency_job_id":null,"html_url":"https://github.com/ericgitangu/django-fullstack","commit_stats":null,"previous_names":["ericgitangu/django-fullstack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgitangu%2Fdjango-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgitangu%2Fdjango-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgitangu%2Fdjango-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgitangu%2Fdjango-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgitangu","download_url":"https://codeload.github.com/ericgitangu/django-fullstack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243048025,"owners_count":20227592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-18T03:15:18.439Z","updated_at":"2025-03-11T13:47:19.954Z","avatar_url":"https://github.com/ericgitangu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Little Lemon Restaurant\n\nThis is a Django project for the Little Lemon Restaurant website.\n\n## Project Description\n\nThe Little Lemon Restaurant website is built using Django for the back-end, MySQL as the database, and JavaScript for handling form components of the template. HTML with supportive stylesheets are already added as part of the starter code.\n\n## Project Structure\n\nThe project directory is named `littlelemon` and the app is named `restaurant`.\n\n## Getting Started\n\nTo get started with the project, follow these steps:\n\n1. Install `pipenv` if you haven't already.\n2. Create a virtual environment using `pipenv`.\n3. Activate the virtual environment.\n4. Install the project dependencies using `pipenv`.\n5. Set up the MySQL database and configure the Django settings accordingly.\n6. Run the Django development server.\n\n## Project: littlemon\n\n## Apps: restaurant\n\n### Models\n\n1. Menu\n2. Booking\n\n### Views\n\n1. def home(request)\n\n    \"\"\"\n    Renders the home page.\n\n    Args:\n        request: The HTTP request object.\n\n    Returns:\n        The rendered index.html template.\n    \"\"\"\n\n2. def about(request):\n    \"\"\"\n    Renders the about.html template.\n\n    Parameters:\n    - request: The HTTP request object.\n\n    Returns:\n    - The rendered about.html template.\n    \"\"\"\n\n3. def book(request):\n    \"\"\"\n    View function for booking a table.\n\n    Args:\n        request (HttpRequest): The HTTP request object.\n\n    Returns:\n        HttpResponse: The HTTP response object.\n\n    \"\"\"\n\n4. def reservations(request):\n    \"\"\"\n    View function for handling reservations.\n\n    Args:\n        request (HttpRequest): The HTTP request object.\n\n    Returns:\n        HttpResponse: The HTTP response object containing the rendered bookings.html template.\n    \"\"\"\n\n5. def bookings(request):\n    \"\"\"\n    View function for displaying bookings.\n\n    Parameters:\n    - request: The HTTP request object.\n\n    Returns:\n    - A rendered HTML template with the bookings data.\n    \"\"\"\n\n6. def menu(request):\n    \"\"\"\n    Renders the menu page with the menu data.\n\n    Args:\n        request (HttpRequest): The HTTP request object.\n\n    Returns:\n        HttpResponse: The rendered menu page.\n    \"\"\"\n\n7. def display_menu_item(request, pk=None):\n    \"\"\"\n    Display a menu item based on the given primary key (pk).\n\n    Args:\n        request (HttpRequest): The HTTP request object.\n        pk (int, optional): The primary key of the menu item. Defaults to None.\n\n    Returns:\n        HttpResponse: The rendered HTML template with the menu item data.\n    \"\"\"\n\n8. def bookings(request):\n    \"\"\"\n    View function for handling bookings.\n\n    Args:\n        request (HttpRequest): The HTTP request object.\n\n    Returns:\n        HttpResponse: The HTTP response object containing booking information in JSON format.\n    \"\"\"\n\n### Forms\n\n1. Booking Form, inheriting from the ModelForm it uses as it Model the Booking Model and does some client-side validations and set up the necessary Form DB attibutes\n\n## Running locally\n\n1. cd littlelemon\n\n2. pipenv shell\n\n3. pipenv install\n\n4. python manage.py makemigrations\n\n5. python manage.py migrate\n\n6. python manage.py runserver\n\n## Requirement\n\n1. MySQL Instance\n2. Django-specific requirements can be found in the requirements.txt file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgitangu%2Fdjango-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgitangu%2Fdjango-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgitangu%2Fdjango-fullstack/lists"}