Giter Site home page Giter Site logo

rhydian-olasupo / littlelemon Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.41 MB

A restful API that exposes a restaurant menu items with ability to add and update dishes along displaying the menu list also it provides booking tables to authenticated users, you can register and login as a user through token based authentication.

Python 74.55% CSS 23.92% HTML 1.52%
backend backend-api database-schema

littlelemon's Introduction

LittleLemon

Coursera Meta Django DjangoREST MySQL

A restful API that exposes a restaurant menu items with ability to add and update dishes along displaying the menu list also it provides booking tables to authenticated users, you can register and login as a user through token based authentication.

Urls Available

  • POST REQUEST: auth/users/ : An api endpoint for user registration

  • POST REQUEST: auth/token/login: Generate user's access-token {username and password}

  • restaurant/menu:

    • GET: returns all the menu items
  • restaurant/menu/int:pk:

    • GET: return item with the specified id

    • PUT: update item with the specified id

    • DELETE: delete item with the specified id

  • restaurant/booking/booking:

    • GET:return a list of booked tables

    • POST: book a table

Installation and Running The Project:

  • Installing Python if it's not already setup used Version is 3.10.11
  • Setting up the virtual environment using venv using the window's cmd:
python -m venv myenv 
  • the required packages : django, djangorestframework, mysqlclient, djoser

  • Running pipenv Virtual Environment:

myenv\Scripts\activate
  • Configuration of mysql database

    • Set the database engine - django.db.backends.mysql
    • set the Host,user,password,port variables according to your setup
  • Running the Server:

python manage runserver

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.