Skip to content

Y-Negash/shelf-a-warehouse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo-vertical

Table of Contents

  1. Project Description
  2. Installation instructions
  3. Usage
  4. Contributing Instructions
  5. Credits and Acknowledgements
  6. Licences

Project Description

This project utilised Javascript, React, HTML and CSS to build a frontend for supermarket stock management database. This frontend builds on a backend API for a fictional warehouse which contains stock batches of particular items. Products in stock can be chosen and sorted into a list of ordered items, that is then added to an order placed by a supermarket.

JavaScript

MVP

  • Create a landing page with navigation routes.
  • Create a navigation bar and display it on each page.
  • Create a page for a creating a new order with ordered items.
  • Create a page to display all orders.
  • Functionality to create a new order that is stored in the database.
  • Add delete functionality for an order on the display orders page.
  • Add CSS styling to the pages.

Extensions

  • Add a button that generates warehouse themed jokes.
  • Add an audio player to the page with audio controls.
  • Add functionality to edit the order status to be updated to be in progress, out for delivery, delivered.
  • Add ability to edit orders.
  • Add an expand button to see full order details on the current orders page.

Wireframe

diagram024-04-04-1017

Prop Diagram

prop-diagram

Installation instructions

  • In the terminal, navigate to the directory you want to copy the repository into. \
  • Run the command git clone [email protected]:Marv3llous/Backend_API.git
  • Run the command git pull to ensure you have the latest version.
  • Open the project in the preferred IDE such as IntelliJ.
  • In the terminal, create the database called inventory_db by running the command createdb inventory_db.
  • Run the BackendProject file.

  • In the terminal, navigate to the directory you want to copy the repository into. \
  • Run the command git clone [email protected]:KajananGit/Stock_Frontend.git
  • Run the command git pull to ensure you have the latest version.
  • Open the project in the preferred IDE such as VSCode.
  • Run the command npm i in the terminal.
  • Now the backend API is running, you can run the frontend application by entering the command npm startin the terminal.

Usage

Home Page:

  • Acts as a Welcoming Screen. Use buttons to navigate to other pages such as the Current Orders Page & New Orders Page. image

Current Orders Page:

  • Displays all the current orders. image

  • Can search orders based on the client (supermarket) that has placed an order. image

  • Can sort orders based on the order status. image

  • Can view more details about an order when clicking on the 'More' button.

image image

  • Can delete and order by clicking on the 'Delete' button.

image image

  • Can update the status of an order by selecting a new status from the drop-down list.

Screenshot 2024-04-04 at 11 59 23 Screenshot 2024-04-04 at 12 00 03

New Orders Page:

  • Can select a supermarket from the dropdown bar and start an order.
Screenshot 2024-04-04 at 13 51 21
  • Once a store is selected and the button is submitted, the item form is displayed and you can add items, choose quantity and add them to your order.
Screenshot 2024-04-04 at 13 51 38
  • Once an order is placed you get an alert to confirm the order went through.
Screenshot 2024-04-04 at 13 51 51

Extensions:

  • Can click the box in the header to generate warehouse themed jokes.
Screenshot 2024-04-04 at 14 00 28 Screenshot 2024-04-04 at 14 00 38
  • Can use the audio player to play music.
Screenshot 2024-04-04 at 14 00 52
  • Clickable links in the footer.
Screenshot 2024-04-04 at 14 00 58

Contributing Instructions

Find below our contributing guidelines. By following these guidelines, you'll help us to maintain a high quality codebase and make the review process smoother for everyone.

1. Fork the Repository: Create a fork of the Stock_Frontend repository on GitHub.

2. Create a Branch: Clone the forked repository to your local machine & create a new branch for your contribution.

3.Make Changes: Make your changes to the code & ensure your changes follow our coding style and conventios to ensure uniformity.

4. Commit Your Changes: Commit your changes to your local branch with a descriptive commit message.

5. Push Your Changes: Push your changes to your forked repository on GitHub.

6. Create a Pull Request: Open a pull request from your branch to the main branch of the upstream repository.

7. Review and Feedback: We will review your pull request and provide feedback.

Credits and Acknowledgements

Licences

License: MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.8%
  • CSS 26.1%
  • HTML 5.1%