GithubHelp home page GithubHelp logo

blw0616 / student-store Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codepath/site-week4-student-store-starter

0.0 0.0 0.0 13.13 MB

Project for Unit 4

JavaScript 73.48% CSS 25.81% HTML 0.71%

student-store's Introduction

Student Store Starter Code

๐Ÿ“ NOTE Use this template to initialize the contents of a README.md file for your application. As you work on your assignment over the course of the week, update the required or stretch features lists to indicate which features you have completed by changing [ ] to [x]. (๐Ÿšซ Remove this paragraph before submitting your assignment.)

Unit Assignment: Student Store

Submitted by: Bailey Williams

Deployed Application (optional): Student Store Deployed Site

Application Features

CORE FEATURES

  • [ x] Database Creation: Set up a Postgres database to store information about products and orders.
    • Use the provided schema to create tables for products, orders, and order_items.
  • Products Model: Develop a model to represent individual items available in the store.
    • This model should include attributes such as id, name, description, price, image_url, and category.
    • Implement methods for CRUD operations on products.
    • Ensure transaction handling for the deletion of products to also delete related order_items
  • [x]Orders Model: Develop a model to manage orders.
    • This model should include attributes such as order_id, customer_id, total_price, status, and created_at.
    • Implement methods for creating, fetching, updating, and deleting orders.
    • Ensure transaction handling for the deletion of orders to also delete related order_items
  • Order Items Model: Develop a model to represent the items within an order.
    • This model should include attributes such as order_item_id, order_id, product_id, quantity, and price.
    • Implement methods for fetching and creating order items.
  • API Endpoints
    • Product Endpoints:
      • GET /products: Fetch a list of all products.
      • GET /products/:id: Fetch details of a specific product by its ID.
      • POST /products: Add a new product to the database.
      • PUT /products/:id: Update the details of an existing product.
      • DELETE /products/:id: Remove a product from the database.
    • Order Endpoints:
      • GET /orders: Fetch a list of all orders.
      • GET /orders/:order_id: Fetch details of a specific order by its ID, including the order items.
      • POST /orders: Create a new order with order items.
      • PUT /orders/:order_id: Update the details of an existing order (e.g., change status).
      • DELETE /orders/:order_id: Remove an order from the database.
  • Frontend Integration
    • Connect the backend API to the provided frontend interface, ensuring dynamic interaction for product browsing, cart management, and order placement. Adjust the frontend as necessary to work with your API.

STRETCH FEATURES

  • Added Endpoints
    • Create an endpoint for fetching all orders in the database.
    • Create an endpoint for serving an individual order based on its ID.
  • Filter Orders
    • Allow users to use an input to filter orders by the email of the person who placed the order.
  • Implement Your Own Frontend
    • Build your own user interface for browsing products, managing the shopping cart, and placing orders. This will involve integrating the frontend you create with the backend API you developed during the project.
  • Past Orders Page
    • Build a page in the UI that displays the list of all past orders. The user should be able to click on any individual order to take them to a more detailed page of the transaction.

Walkthrough Video

`

` ``

Reflection

  • Did the topics discussed in your labs prepare you to complete the assignment? Be specific, which features in your weekly assignment did you feel unprepared to complete?

Yes, but the project instructions were not clear. There were features, such as the "success" section that needed to be fixed that were not included in the instructions. THe labs prepared me as much as they could considering the fact that the instructions did not.

  • If you had more time, what would you have done differently? Would you have added additional features? Changed the way your project responded to a particular event, etc.

I would fix the view of the frontend. WHile the site is functional, it's not visually pleasing enough to be useful.

  • Reflect on your project demo, what went well? Were there things that maybe didn't go as planned? Did you notice something that your peer did that you would like to try next time?

My peers added some designs and stretch features. If I had more time, I would focus on that.

Open-source libraries used

  • chatgpt.com
  • w3schools.com

Shout out

SHOUT OUT DEVARSH LUCKY KIAHNA AND CHRIS!!

student-store's People

Contributors

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