Skip to content

MuhammadAlgshy/Storefront

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Storefront

A store App developed using Django, RESTFul API, JWT. SQLite has been used as database. Training Material

Installation

  • Clone the repository to your working folder
$ git clone git@github.com:MuhammadAlgshy/Storefront.git
  • Install requirments
$pip install -r requirments.txt
  • Setting Configuration
# OPTIONAL, change debug = false (storefront/settings --> DEBUG)
DEBUG = False
# Set the Django secret key (storefront/settings --> SECRET_KEY)
SECRET_KEY = 'django-insecure-_YOURSECRETCODE_'
# Set your database settings (storefront/settings --> DATABASES)
# Database
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'Storefront.sqlite',
    }
}
  • Database Migration
# Go to you working directory on terminal/cmd
$ cd _workingdirectory_
# Make database migration 
$Python manage.py makemigrations
# Migrate Database
$Python manage.py migrate
  • Create Admin user
$ python manage.py createsuperuser
  • Run Server
# Run django server
$python manage.py runserver

Enjoy the experiance.

Releases

No releases published

Packages

No packages published