Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Simple grocery list web app using Flask+DynamoDB for the backend. Hosted on AWS.

Front end code is heavily modified from a lesson in Javascript 30. It is simple HTML+CSS+JS and works on mobile and desktop browsers.


  • Use the text box to add items to the list.
  • Click the check box and 'Remove Checked Items' to remove items.
  • Click 'Done Shopping' to save the list and start a new list with the same items.
  • The application saves to the database every time an item is added or removed. The 'Save To Database' button is only needed in case the database was not updated when an item was added or removed (if for example, the user was briefly offline).
  • The 'Up' and 'Down' buttons move the respective up and down the list by one place.


In addition to the code in this repository, you will also need to set up some other services to get the application working:

  • Install and set up your virtual environment. I am currently using virtualenv and have included the requirements.txt file.

  • Set up routing for the front end of this application and the flask API. If you are using an Apache webserver you can edit your Virtual Hosts file with the command:

    sudo emacs /etc/httpd/conf.d/vhost.conf

    If you are hosting only this application, the file should look like the below where domain is your website domain name, and ‘’ and ‘’ are the URLs you’d like to use for the front end and Flask API respectively. You’ll need to add the flask API URL to the index.js file URLRemote variable.

    NameVirtualHost *:80

    <VirtualHost *:80>
        DocumentRoot /var/www/GroceryList


    <VirtualHost *:80>
            DocumentRoot /var/www/GroceryList

            WSGIDaemonProcess GroceryList user=username group=groupname threads=5
            WSGIScriptAlias / /var/www/GroceryList/deploy.wsgi

            <directory /var/www/GroceryList>
                    WSGIProcessGroup GroceryList
                    WSGIApplicationGroup %{GLOBAL}
                    WSGIScriptReloading On
                    Order deny,allow
                    Allow from all
  • Set up the subdomains there to ensure they point to your server correctly.

  • Create a table in DynamoDB using:

    Primary partition key GUID (String) Primary sort key ShopDate (String) I also suggest unchecking default settings and auto scaling. Use 1 for read and write capacity units to save costs unless you are planning to drastically expand usage of this app.

  • Assign the TABLE_NAME variable in to whatever you name your table in DynamoDB.


No description, website, or topics provided.






No releases published


No packages published