GithubHelp home page GithubHelp logo

eluckie / flower-to-the-people Goto Github PK

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

React (week 16) Code Review - React Fundamentals

Home Page: https://eluckie.github.io/flower-to-the-people/

License: MIT License

HTML 8.53% JavaScript 82.51% CSS 8.96%
create-react-app jsx reactjs

flower-to-the-people's Introduction

Flower to the People

By E. Luckie ☀️

This site was created as a tool for a faux business to keep track of inventory levels of their products. Users are able to add/restock items, see a list of items available, "sell" items (decrement stock levels), and delete items.

Technologies Used

  • React
  • JSX
  • JavaScript
  • Markdown
  • Drawio
  • Git

Description

This site acts as a simple tool to keep track of inventory for a faux flower business. Upon opening or refreshing the site, the default tab is the spotlight tab. From every page, users are able to navigate to the about us page, shop page, spotlight page, or the new flower page. From the shop page, users are able to click on any flower to navigate to that flower's detail page, where they are able to edit, delete, buy, or restock.

this link displays a page that shows...
about us blurb about fake company, store hours, & store location/contact
shop list of current flowers in available. if no flowers are available, page will be empty
spotlight three faux "top staff picks" flowers for sale
new flower form to add a new flower to site

Click here to view the live version of this flower shop webpage

Navigating the Site

new flower form

  • filling in all details will add a new flower to the available flowers in shop
  • the default quantity for adding a new flower is by the dozen (12)


flower details page showing color, name, place of origin, price per flower, number of flowers in stock, and buttons to update, delete, take a flower, or restock flowers

  • clicking update {flower name} will take user to the edit flower form
  • clicking kill {flower name} will delete the flower from the site and re-route user to the shop page
  • clicking take a flower will lower the in stock level of the selected flower by 1. changes will reflect immediately
  • when down to 3 or less flowers in stock, "almost sold out" message will display on flower
  • clicking the button with the site icon will restock the selected flower. the default is by the dozen (12) and changes will be reflected immediately


edit flower form

  • filling in all details will update the selected flower (noted in the yellow text by name)
  • form must be fully filled out
  • once updated, user is re-routed to shop page


out of stock details page showing that there is no take a flower button

  • when in stock level reaches 0, "currently out of stock" message displays
  • note, there is also no take a flower button if flower is out of stock, only the restock button


Diagrams

Site Diagram

site diagram

Component Diagram

component diagram

Setup/Installation Requirements

  1. Clone this repository to your desktop
  2. Navigate to the top level of this directory in your computer’s terminal
  3. Run the code npm install in your terminal to install the necessary packages and plug-ins
  4. Run the code npm run start in your terminal to start the application in development mode and open the project in your web browser

Known Bugs

  • Needs error handling for update form - if not filled in, will update all details to null

Stretch Plans

  • As a user, I want to have flower prices to be color-coded for easy readability. This could be based on their price, their origin or color, or the amount of flowers left.

License

MIT License

Copyright (c) 2023 Luckie


This project was bootstrapped with Create React App.

flower-to-the-people's People

Contributors

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