This project builds a e-commerical Web Server which provides User Interface for custemer to explore/buy the products and manager to manage the orders.
Custemer "Can"
- Look up the products
- Modifiy the items in cart on summary Package
- Pay the bill using cards (service provided by stripe API)
Manager "Can"
- Look up the order and order's payment history
- Read the full Log of order's action (change)
- Edit/Cancel the order
- Django = "3.0"
pip install django
- python = "3.8"
- stripe = "2.48.0"
pip install stripe
- twilio = "6.44.0"
pip install twilio
*Sqlite3
(For detail, go through shopping/models.py)
- product_id
- name
- discrption(optional)
- price
- unit
- availability(Bollean)
- order
- action
- Time
- new_order_id
- admin (optional)
- order_id
- receiver_first
- receiver_last
- receiver_address
- receiver_addresstwo (optional)
- receiver_country
- receiver_state
- receiver_zip
- product_list
- Time
- status
- Admin (optional)
- order
- billing_first
- billing_last
- billing_address
- billing_addresstwo (optional)
- billing_country
- billing_state
- billing_zip
- Time
- token_id
- phone
- Setup
go to mysite.setting
Add STRIPE KEYS which are the public and secret key in your stripe account
STRIPE_PK = 'xxxxx' STRIPE_SECRET = 'xxxxxx'
Add Twillo KEYS which are the account SID and account token in your twilio account
ACCOUNT_SID = 'xxx' AUTH_TOKEN = 'xxx'
Add phone number: The phone sender is the number whicn is used to send messages and delivery phone is the number that will recivce the message and make delivery
** make sure the phone sender is linked in your twilio account** PHONE_SENDER = '+1xxxxxxxxxx' DELIVERY_PHONE = '+1xxxxxxxxxx'
- DB setting
Setup Admin account for your DB
In shell, type
python manage.py createsuperusers
Registe with UserID, Password and Email Address
- Run the server
python manage.py runserver 0.0.0.0:3000
