Skip to content

raun1997/E-Commerce-Application-Major-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce Application using Flask

Architecture

image

Instructions

  1. Git is a free and open source distributed version control system. If you have git installed in your machine, you can clone my repository. Fire up Command Prompt/Terminal/Git CMD and type git clone https://github.com/raun1997/E-Commerce-Application-Major-Project.git to clone. If you don't have git, you can download the repostory as ZIP file and extract it later.

  2. Delete the virtual environment ecommerce from the file tree.

  3. Inside the project folder, make a new virtual environment in your command prompt using python -m venv ecommerce command.

  4. Activate the newly created environment by ecommerce\Scripts\activate command.

  5. To run this project, you need packages like flask, flask-sqlalchemy and sqlalchemy. Install them using pip install command. You can also use pip install -r requirements.txt command to install all dependencies in an easier way.

  6. Type flask --debug run to serve your website and keep your debugging mode on. While this mode is enabled, any change gets reflected after refresh.

  7. At http://127.0.0.1:5000, if the product page is empty, please go to http://127.0.0.1:5000/seed ONCE to populate the database with products.

    gif

  8. Please modify the product list here to add more products and then go to http://127.0.0.1:5000/seed to update the database.

    image
  9. Remove/delete the image directory. This contains the database configurations for your project.

  10. Stop the server using Ctrl C and restart it.

  11. If you wish to change the images or properties of each product, you can repeat step 9 and 10.

  12. Go to http://127.0.0.1:5000 again to see the products.

  13. While this site is being served, you can type code . command to fire up Visual Studio and modify the logic.

  14. You are welcome to make contributions by suggesting changes in my code.