Coder Social home page Coder Social logo

mjdelbianco / listy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.19 MB

A simple Shopping list app with a bar-code scanner created with React Native when I was a total newbie.

License: MIT License

JavaScript 53.73% Starlark 4.24% Java 20.79% Ruby 11.60% Objective-C 9.63%

listy's Introduction

Listy - your shopping buddy

Create shopping lists in a fun and easy way by scanning the barcode of the product!

A simple yet effective shopping list app built in React Native using the (extremely limited in free requests πŸ˜‚ ) Barcode Lookup API. Listy came to life in a shape of a project I was sharpening my skills on - working with an API, using React Hooks or trying(and liking) React Native for the first time! Eventually I would like to make add more features, keeping in mind the apps simple purpose, and deploy :)

⭐ How does it work?

Simply create a list with a desired title, and start scanning your products. In case there is no barcode to scan (fruits, veggies...) you can simply input the products manually. Listy saves you the trouble of creating lists over and over again - why don't you create a list of your favorite/most frequently bought items and update it as you go!

You just finished the milk from the fridge? 😧 It is possible that you will forget to buy it when you are out and about πŸ˜•. WAIT! Scan the barcode before throwing the milk out and never forget it again 😜.

Listy - your shopping buddy

⭐ Tech Stack

React Native
Barcode Scanner
Barcode Lookup API
Async Storage
React Navigation

⭐ How to get it up and running?

❗ To run Listy on your computer/simulator you need to have Android Studio and SDK Tools installed, configured and ready to run.

❗ Also, get your API key at the Barcode Lookup API and store it in your .env that you will create at the root of the project.

Clone this repository and in the root folder install the dependencies to set up your environment: npm install or yarn install.

Then run npm start or even better npm start -- --reset-cache. VoilΓ ! πŸš€

⭐ Observations

πŸ’ͺ Improvements (I've learned a lot since ☺️)

  • there is some prop drilling so i would definitely use a state management library (Redux πŸ’œ)
  • styles in React Native can get very repetititve - create modular styles
  • refactor hooks to be cleaner
  • create a helper file so the functions don't crowd the components
  • improve styling?

πŸ”₯ Back to the future

  • create users and have multiple profiles connected to the same account so a family/roomates can share the lists (like Netflix allows you to do) 😻
  • show more info on every product that is in the list (ex. an image on press)
  • add the quantity for items on the list
  • make suggested lists for omnivors, vegans, vegetarians, seasonal lists and pantry essentials
  • migrate from Local Storage to database -> create a server with a database

⭐ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

⭐ License

MIT

listy's People

Contributors

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