Skip to content

Repository files navigation

Shopping Cart

A simple E-commerce website using Flask.

Dependencies

  1. Python3
  2. Flask
  3. Sqlite

How to run

  1. Set up database by running database.py (Or you can reuse existing database included in the repo)
  2. Run main.py
  3. Enter localhost:5000 in the browser

Pipenv instructions

  1. Install pipenv (python3 -m pip install --user pipenv)
  2. Install dependencies (pipenv install --dev)
  3. Setup database (pipenv run python database.py)
  4. Run the server (pipenv run python main.py)
  5. Enter localhost:5000 in the browser

Sample User

Sample credentials present in existing database: Username - sample@example.com Password - sample

Running with Docker

Build the Docker image

docker build -t shopping-cart .

Run the container

docker run -p 5000:5000 shopping-cart

Visit:

http://localhost:5000

Running with Docker Compose

docker compose up --build

Visit:

http://localhost:5000

About

A simple E-commerce website using Flask

Topics

Resources

Stars

261 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages