e-commerce_command_line
This is a prototype for the e-commerce command line client.
This was developed on a windows computer.
Instructions to run it:
- Install MySql server
- Run MySql
- Run the following commands
CREATE USER 'root1091'@'localhost' IDENTIFIED BY 'root1091';
CREATE DATABASE ECart;
GRANT ALL PRIVILEGES ON ECart.* to 'root1091'@'localhost';
- Create a virtualenv and activate it.
- Run
pip install requirements.txt
- Run to create tables in your database
python create_tables.py
- To populate the tables, the CSV_files, if they need to be changed, change them according to the structures of the tables.
python populate_db.py
- To Run the program, run the main_script.py
python main_script.py