- Run
cli.py -h
to get the help - Run the
cli.py
withpython cli.py -m migrate
to create the database - Run
cli.py
again to create admin and standard user as follows python cli.py -u admin -p admin -n Admin -e admin@mycart.com
-u
is the username-p
is the password-n
is the name of user and-e
is the email of the user- Run
cli.py
again to create the one user as follows python cli.py -u vilas -p vilas -n Vilas -e vilas@mycart.com
- Now run the
main.py
to start the app and login with admin credentials - Perform admin activity and logout, then login with user for next set of activity.
- Login with admin first and add category
- Add product (you can choose product category from list)
- Repeat above steps for number of products you want to add.
- Do not add product directly without creating category.
- Admin can't place orders.
- User carts won't be visible until user adds something to his/her cart.
- Order bills won't be visible until there is an order placed by user.
- When user confirmed his/her order product cart will be flushed and no longer be available for admin to view.
- When user complete his/her order checkout only then admin can view the bills generated.
- Users can browse categories and products interactively.
- Products can be added to the cart from product detail page only.