Ecommerce backend using django and django rest framework
$ git clone https://github.com/Bappy4u/storefront.git
$ cd storefront
if you have pipenv
installed in your machine
$ pipenv install
It will install a virtual environment for you and will install all the dependencies
- Select that environment as your python interpreter
Once you select and run virtual environment that you just installed :
- Change Database settings in the settings.py at storefront directory
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mydatabase', # This is where you put the name of the db file.
# If one doesn't exist, it will be created at migration time.
}
}
- To migrate all the settings command this in the terminal
(storefront)$ python manage.py migrate
- To check the admin pannel create a super user
(storefront)$ python manage.py createsuperuser
- Finally
(storefront)$ python manage.py runserver
And navigate to http://127.0.0.1:8000/
- To register models to the admin panel
- I added extra functionality to the models in the admin panel ( e.g: Model count, Sort, Link, etc ) Check the file here https://github.com/Bappy4u/storefront/blob/main/store/admin.py
- All the functionality in the admin panel by populating some data in the database
- Optimal query requests using django-orm in http://127.0.0.1:8000/playground/hello route using SQL section of django-debug-toolbar
- Python 3.8
- Django 3.2.5
- Django-orm
- MySql
- django-debug-toolbar
- django-rest-framework (not used yet)
- rest-api for this eccommerce
- Front-end with React