Coder Social home page Coder Social logo

littlelemon's Introduction

This project has been completed as part of the capstone project for the course 
titled 'Back-end Developer Capstone' created by Meta in association with Coursera.
It was indeed a great learning experience and I am thankful to Meta and Coursera for creating 
this meaningful learning experience.

Django superuser: This will be your superuser as the one I created has been
registered in my MySql database. You can create your own superuser by running the following command in the terminal:
python3 manage.py createsuperuser


Restaurant home: http://127.0.0.1:8000/restaurant/

Github link: https://github.com/sudhirnagendragupta/littlelemon

Please check the model schema to understand what fields are needed. Hopefully you are
using the same field names in the MySql tables that you have created.


# You can test the following API routes either in the browser or through 
# Insomnia/Postman
** Please do not forget to append backslash '/' at the end of the url **
# You need to be logged in as a user to access these routes

restaurant/menu_api/                 
restaurant/menu_api/<int:pk>/   
restaurant/booking_api/tables/


For user registration
/auth/token/login/     # To create the token. You need to be logged in as superuser to access this route
/auth/users/           # To register a new user. You need to be logged in as superuser to access this route
restaurant/api-token-auth/       # Make a post call to this route with username and password to get the token

For running the tests
Pagination has been commented in the settings files to enable to run the tests. 
Please uncomment it after running the unit tests if you want to test pagination.

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.