Coder Social home page Coder Social logo

onlineshop's Introduction

OnlineShop

An E-Commerce Website using Flask(Python) Backend

Components of the Project :

  • __init__.py : The main python program to be run in order to run the server(Flask App). This program takes Port Number as a command line argument.
  • dbaccess.py : Python code with all the utitlity functions for accessing the SQL database. Uses python's inbuilt library sqlite3 as SQL database connector. This file has been imported as import dbaccess inside init.py and all the utility functions are used thereby.
  • templates : This folder contains all the Jinja2 templates to be rendered through the Flask App.
  • static : This folder contains the static files i.e. CSS, JavaScript, Images, etc.

Requirements :

  • Python (version 3.0 or above)
  • Flask : Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions.

How to run the server :

First set the environment variable by running the following command (once for a terminal session):

  • On Linux/MacOS
$ export FLASK_APP=OnlineShop
  • On Windows
$ set FLASK_APP=OnlineShop

To run the server execute the following command, each time:

$ flask run

(make sure you have installed Flask, in order to run the server.)
Now the server is running at http://localhost:5000

onlineshop's People

Contributors

thevarunsharma avatar dependabot[bot] avatar

Watchers

James Cloos 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.