/Store

A simple kirana webstore

Primary LanguageHTML

Store Project

ToDo List

  • WEBSITE
    • Display Products - desktop & mobile view
    • Search - product name / brand / category
    • Browse products via category
    • User Signup & Login
    • Forgot passowrd
    • Session / Cookie guest checkout
    • Contact & FAQ page
  • ADMIN
    • Edit Projuct from main page
    • View all orders
    • Manage orders status
    • Views & routes for crud o/p
    • Ajax search / sugesstion automcomplete
    • Add projucts / brands / category via ajax
    • Email shoot
  • USER
    • Add item's to cart & store
    • Project stocks constraint to cart
    • Checkout - COD
    • View all previous orders
    • Edit profile
  • API
    • Api routes display
    • Get products list - nested json

 


Demo Not hosted yet :-

Website URL
AWS www.www.ww

Run this Django app on local server?

Create an empty folder :

git clone https://github.com/NishantGhanate/store.git.

In Cli : 1.Create virtual env , 2. Activate it, 3. Install requirements

 > virtualenv venv

 > venv\Scripts\activate

 > pip install -r requirements.txt

Generate Django secret key :

from django.core.management.utils import get_random_secret_key

get_random_secret_key()

'[GENERATED KEY]'

 

Env file

Simply create a .env text file on your repository’s root directory where manage.py exists , then paste secertkey :

DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhost
SECRET_KEY=SECRETKEY
EMAIL_HOST=
EMAIL_PORT=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
DEFAULT_FROM_EMAIL=
DATABASE_URL=

Inside settings.py of project

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = config('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config('DEBUG', cast=bool)

ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())

# django.core.mail.backends.smtp.EmailBackend
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = config('EMAIL_HOST')
EMAIL_USE_TLS = True
EMAIL_PORT = config('EMAIL_PORT', cast=int)
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL')

Run :

> python manage.py makemigrations

> python manage.py migrate

> python manage.py createsuperuser

> python manage.py runserver

 

Easy guide to host on django on aws

https://www.youtube.com/watch?v=ypnEf7W8db0&ab_channel=AwaisMirza

 

Somethings about this project

This Django project two Django apps 
1. api
2. guptastore

The goal of this project is to create small ecommerce like web-site for my friends kirana store .
This project is still underdevelopment , adding & improvising on certain things like ajax & api