GithubHelp home page GithubHelp logo

eluckie / canna-site Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 773 KB

React (classwork) - practice building a React site that uses both shared and local state. Refactor to include Redux

Home Page: https://eluckie.github.io/canna-site/

License: MIT License

HTML 7.41% JavaScript 86.70% CSS 5.89%
create-react-app jsx reactjs redux

canna-site's Introduction

Canna Site

By E. Luckie ☀️

This site was created to practice using React to make single-page sites that use local and shared state to be dynamic.

Technologies Used

  • React
  • Redux
  • JSX
  • JavaScript
  • Markdown
  • Git

Description

Build a website for selling merchandise for a band, author, sports team, or any other purveyor that interests you.

A user should be able to do the following:

  • Create, Read, Update and Delete items in the store. Items should have fields for name, description, and quantity (along with any other fields you wish to add).
  • Increase or decrease the quantity of an item in the store. For instance, if a user clicks "Buy", the quantity will decrease by one. If a user clicks "Restock", it will increment by a specified number.
  • When the quantity of an item is reduced to 0, the item should say "Out of Stock". A user should not be able to reduce the quantity of an item below 0.

Click here to view the live webpage of this canna site

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

  • WIP: add buying & restocking features
  • forms do not disappear unless site is refreshed or they're filled out - add cancel button or hide forms when clicking on other links

Stretch Plans

  • Create a Cart component. When a user clicks "Buy", the specified item should be added to the cart.
  • A user should be able to view and remove items from the cart.
  • Create a widget that shows the number of items in the cart. This widget should be updated when items are added to the cart.

License

MIT License

Copyright (c) 2023 Luckie


This project was bootstrapped with Create React App.

canna-site'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.