This is a smart shopping app which was developed by a group of four developers under the collab lab mentorship program. The app learns your buying habits and helps you remember what you will likely need to buy on your next trip to the store.
As a user, you will need to create a new shopping list or join an existing list. You can then add items to your list. Each time you buy the item, you mark it as purchased in the list. Over time, the app comes to understand the intervals at which you buy different items. If an item is likely to be bought soon, it rises to the top of the shopping list.
The live project can be viewed here.
- This project was bootstrapped with Create React App
- Google Firebase is used to store the data
- To make integration with Firebase even more straightforward react-firebase-hooks was installed
- react-router-dom is used for navigating between the different views
- The app was styled using the utility-first CSS framework TailwindCSS
To set up the project locally, follow the steps below.
-
Clone the project to your local machine using the command
git clone https://github.com/the-collab-lab/tcl-19-smart-shopping-list.git
. This requires you to have git installed on your machine. If you don't have git, you can download it from here. It is a very powerful and popular version control system(VCS). If you are familiar with another VCS, you can check out the git documentation. If you are a total beginner to git and VCS, this awesome course by atlassian will set you off. -
Build the app locally.
To run the app locally, you need to:
- have
node
andnpm
installed on your machine. If you don't havenode
installed on your machine, follow the instructions here to install it. If you are not sure whether you have it installed, runnode --version
on your terminal. If you see the version of node likev15.0.1
then node has already been installed. When you download Node.js, you automatically getnpm
installed as well. - create a firebase project
- create
.env
file and then copy and paste the contents of example.env in it. The corresponding value of each environment variable in the.env
file should correspond with the configuration key for the firebase project you created. - run
npm update
to install and update the project dependencies - run
npm start
to start a live version of the app on local host. The app will be onlocalhost:3000
.
- have