Code Monkey home page Code Monkey logo

shopping-list's Introduction

flask-shopping-list

This is a shopping list webapp built in flask/python without JS


Python version: 3.10.1

Required set up configurations:

It is good practice to create a virtual environment for the project this can be done in the folder root folder using the following windows (or equivalent) terminal commands

> py -m venv venv

> venv\Scripts\activate

> py -m pip install -r requirements.txt

note: if you do not activate the venv before installing the requirements.txt, then it will be installed in your main python directory


In-order to connect to a database either create a file in ./shop/ called 'config.py' this must contain the folowing variables (shown using mysql):

secret_key = '<- add secret key here ->' 

database_uri = 'mysql+pymysql://<- DB Password ->@<- DB domain/IP (localhost normally) ->/<- DB Name ->'

debug_setting = <- True or False ->

replace the <- -> with the correct info

or

change the config settings to something more relevant

app.config['SECRET_KEY'] = db_var.SECRET_KEY

app.config['SQLALCHEMY_DATABASE_URI'] = db_var.SQLALCHEMY_DATABASE_URI


Secret key generation

Use the following python commands to generate a secret key:

> python

>>> import os

>>> os.urandom(24).hex()

To add the tables to your local testing database, for example

you can use the following commands:

> python

>>> from main import db

>>> db.create_all()

Images of the Site

Login Page

login-page

Account Page

account-page

View all Shopping Lists

user-view-all-lists

Add item in Shopping List

adding-item-to-list

Edit item in Shopping List

editing-item

Delete item in Shopping List

deleting-item-from-list


License & copyright

Copyright © 2022 Alexander A Deverson, Durigy

Licensed under the MIT License

shopping-list's People

Contributors

durigy avatar

Watchers

 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.