The goal of this application is to apply skills of full stack web development that uses Python Django framework. CRUD implementaion to provide support of create, view, update and delete. This application works on local environment.
This application runs on local environment. All required software to run this application is already made available in Vagrantfile provided by Udacity. Hence separately no installation is required. Application:
A. Download(Optional):
B. Installation(If not installed):
- Git(To clone the project)
- Virtualenv
- Packages
C. Run
- Open gitbash terminal
- Create new directory or you can use existing one. For creating directory use mkdir 'DirectoryName' on gitbash terminal/cmd.
- Goto the directory where you want to keep your files.
git clone project_url
use this command to clone the project.pip install virtualenv
install virtualenvvirtualenv mypython
create environment.source mypython/bin/activate
to start the environment.pip install -r requirements.txt
install all required packages.- After completing step 8th,
python manage.py makemigrations
to create database schema and tables. python manage.py migrate
to migrate according to new db structure.python manage.py runserver
this will run your server- Now open browser and type 'https://localhost:8000/' in URL bar to see homepage.
- 'https://localhost:8000/' or 'https://localhost:5000/home/' to view the homepage.
- 'https://localhost:8000/login/' to login as user or manager.
- 'https://localhost:5000/register/ to register as user or manager.
- 'https://localhost:8000/orders/ to view orders that were placed by the user are approved/rejected/on pending or not..
- 'https://localhost:8000/cart/ to view items that were added to cart.
- 'https://localhost:8000/checkout/ to place the order.
- 'https://localhost:8000/profile/ to view profile for both user/manager.
- 'https://localhost:8000/orders_status/ or Incoming orders on navigation bar, to accept or reject the order handled by manager only. (Required login)
- 'https://localhost:8000/orders_history/' to view all orders that were accepted or reject(Only available for manager).
- 'https://localhost:8000/product_create/' to add new product(Only for manager)
- 'https://localhost:8000/add_address/' to add new shipping address(Only for user)
- 'https://localhost:8000/add_category/' to add product category(Only for manager)
- 'https://localhost:8000/update_category/' to update product category(Only for manager)
- 'https://localhost:8000/update_product/product_id/' to update product details(Only for manager)
- 'https://localhost:8000/update_product/product_id/' to update product details(Only for manager)
- 'https://localhost:8000/update_profile/' to update profile details.
Will add soon.
A. Create superuser to handle the reset password feature as of now. In future I will add reset feature with email as recovery method.
python manange.py createsuperuser
Required fields - First Name, Last Name, Email, Password, Confirm Password.
B. If DB got deleted, if you run into problem and then create again. paste code below to get the python3 compatiable modules and packages.
- sudo apt-get -qqy install python3 python3-pip
- sudo pip3 install --upgrade pip
C. If python3 manage.py gives error that might be for dos and unix format difference. To over come install
- run sudo apt-get install dos2unix on gitbash terminal/cmd
- run dos2unix manage.py on gitbash terminal/cmd
D. Unreachable issue may be caused due to trying to access using https://
This project was done as part of the Dphi Web Development Assigned for the Web Development Role. This project was done by me only.