-
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.gitto clone. If you don't have git, you can download the repostory as ZIP file and extract it later. -
Delete the virtual environment
ecommercefrom the file tree. -
Inside the project folder, make a new virtual environment in your command prompt using
python -m venv ecommercecommand. -
Activate the newly created environment by
ecommerce\Scripts\activatecommand. -
To run this project, you need packages like flask, flask-sqlalchemy and sqlalchemy. Install them using
pip installcommand. You can also usepip install -r requirements.txtcommand to install all dependencies in an easier way. -
Type
flask --debug runto serve your website and keep your debugging mode on. While this mode is enabled, any change gets reflected after refresh. -
At
http://127.0.0.1:5000, if the product page is empty, please go tohttp://127.0.0.1:5000/seedONCE to populate the database with products. -
Please modify the product list here to add more products and then go to
http://127.0.0.1:5000/seedto update the database.
-
Remove/delete the
directory. This contains the database configurations for your project. -
Stop the server using
Ctrl Cand restart it. -
If you wish to change the images or properties of each product, you can repeat step 9 and 10.
-
Go to
http://127.0.0.1:5000again to see the products. -
While this site is being served, you can type
code .command to fire up Visual Studio and modify the logic. -
You are welcome to make contributions by suggesting changes in my code.
