Git Product home page Git Product logo

sql-for-testers-practice-site's Introduction

SQL for Testers E-commerce Practice Site

This is a simple e-commerce website written with the python Flask framework. It allows the user to signup/login and shop. You can then go through a simple checkout workflow (without the payment processing step). The database for this is a written in Sqlite. This application is intended to be used as part of courses I have written that help software testers learn how to use SQL in their work.

It was originally forked off of this repo https://github.com/Himani13040/Flask-E-commerce

Setup

In order to use this site locally, clone or download this git repo and then open a command prompt in the folder where you have downloaded these files.

python setup

In order to run this application locally you will need python 3 with the flask library installed.

If you do not have python 3 on your computer you can download and install it from the python website - https://www.python.org/downloads/

Once you have it installed you will need to install the flask library. You can easily do this with pip

pip install flask

You will also need to have the requests module installed. You can once again install this with pip using the following command

pip install requests

Setup flask

In order to use flask you will need to tell it what application you want to run. In this case that application is called "main" and so to set it up you will need to create an environment variable called FLASK_APP and set the value to main. On a Windows machine that would look like

set FLASK_APP=main

Note that this is the Windows syntax. You may need to use export instead of set if you are on a Mac.

You will also want to tell Flask that you are working in a development environment so that it will give you more feedback on what is going on.

set FLASK_ENV=development

Running the Application

With flask setup you are ready to start running the application. Simply type the following at the command line.

flask run

This will start up the application for you and you can go to http://127.0.0.1:5000/ to see the application!

sql-for-testers-practice-site's People

Contributors

djwester 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.