Skip to content

majdi-egbaria/littlelemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Littlelemon

Installation

using pipenv (easier than pip and contains all dependencies)

you might need yo change python version in Pipfile python_version = "your-installed-python-version"

# CMD / PowerShell
pipenv shell
pipenv install

Setup

Modify database config in project/settings.py file

# CMD / PowerShell
'NAME': 'database',
'USER': 'user',
'PASSWORD': 'password',

Initialization

Run migrations

# CMD / PowerShell
python manage.py migrate

Create super user

# CMD / PowerShell
python manage.py createsuperuser

Routes

booking

/restaurant/booking/tables/

menu-item

/api/menu-items/

auth (Djoser)

/auth/token/login/

auth (DRF)

/api/api-token-auth

Testing

# CMD / PowerShell
python manage.py test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published