Coder Social home page Coder Social logo

group-fs-react-shopping-list's Introduction

React Shopping List

Project Instructions, this line may be removed once you have updated the README.md

Description

Your project description goes here. What problem did you solve? How did you solve it?

Additional README details can be found here.

TO DO:

-[x] install react -[x] make sure you hve both servers started -[x] set up a database -[x] add existing items to the database and update database.sql -[x] update database name in pool.js -[x] connect the the router to the server.js -[x] create a simple wireframe to start -[x] check top of app.jsx to make sure we have all the imports we need -[x] create item name, quantity, and unit variables with useState -[x] create useEffect function with the GET function to populate the grocery list with items from the database on page load -[x] create GET and POST in the function in app.jsx -[x] create a form for name, quantity, and unit for the items within the app.jsx function return -[x] create empty list for grocery items

  • items should appear alphabetically
  • add purchased button
  • add onclick to purchased button that removes purchased button and item is shown as purchased
  • onclick calls a function that updates the database to change 'purchased' to true (default will be false)
  • in fetchItems, use a conditional to determine how the items are appended based whether 'purchased' is true or false

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.