Giter Club home page Giter Club logo

mystore's Introduction

Clothed SuperStore

The url for the app is https://superstore.pythonanywhere.com/

Project description

This is website store that I built that allows the user to replicate the functionality off any online web store. For example it allows the user to browse through the store, add items to a basket, update or delete the items in your basket, add and delete items to the store's database (you have to be an admin to do so), checkout by filling in your details and picking the method of payment.

Although you need to be admin in order to add or delete the items from the database, I have added an admin dashboard that does not require authorization to view certain things. From this dashboard you can check the number of items left, customers purchased orders and so much more.

Disclaimer The is not a real store but a demonstration store and because of that it does not take any real money, credit cards, etc but it does replicate the buying functionality found in any web store. The pictures used were taking from Topshop and the NeXT website in order to demonstrate the functionality of the store.

Technologies used

  1. Python 3.6
  2. Flask
  3. HTML
  4. Bootstrap
  5. Sqlite3
  6. SQLAlchemy
  7. Bootstrap

How to run this in your local system

  1. Create a virtual environment optional

  2. Create a name for your directory

  3. Go into your new directory

  4. Clone the repository by using the command git clone followed by a . The full stop at end copies all the folder and directories and sub-directories into the your chosen directory without creating the based folder.

  5. Type the command "pip install -r requirements.txt" (making sure you are in the root directory) this will install all the dependencies on your virtual environment

  6. (First time use only) Open a command terminal make sure you are in the forum root folder and type the command:

    1. python app.py db init
    2. python app.py db migrate
    3. python app.py db upgrade
    4. Next open a python terminal and type the following command
      1. from create_app import db
      2. db.create_all()
  7. Next we need to create our admin user. Make you are in the root store folder open a terminal and type

    1. python "create_admin.py" file and this should create your password.
  8. Open the settings.py and enter the full path to imgs folder. The path will be different depending if it is on a Windows, Mac or Linux. Windows you must use double slash "\" and "/" for Mac or Linux. Regardless of what OS the final path must end either with "/imgs" or "\imgs"

  9. Next run the command ** flask run** If you get an error type in the command

    1. set FLASK_APP=app.py
    2. ** flask run **
  10. Open a browser of your choice and type in http://127.0.0.1:5000 and watch app go

  11. To use a demonstration of the app go to https://superstore.pythonanywhere.com/

  12. For any bugs found hit me up at "[email protected]"

mystore's People

Contributors

dependabot[bot] avatar egbieandersonuku1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.