Skip to content

Product-Inventory-Manager is a web application built with Vue.js and Spring Boot that allows users to manage product inventory, track stock levels, and view product information in a clean, organized interface

Notifications You must be signed in to change notification settings

telman03/Product-Inventory-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My Vue.js and Spring Boot Application

This is a sample application that demonstrates how to build a simple web application using Vue.js and Spring Boot. The application displays a list of products retrieved from a Spring Boot backend and renders them in a table using Vue.js.

Screenshot of Product List:

Screenshot 2023-04-08 at 22 12 27

Technologies Used

The following technologies were used in the development of this application:

  • Vue.js
  • Spring Boot
  • Java
  • PostgreSQL
  • JavaScript
  • HTML&CSS

Getting Started

To run the application, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the backend project in your favorite Java IDE (e.g. IntelliJ IDEA).
  3. Build and run the Spring Boot application.
  4. Open the frontend project in a terminal.
  5. Install the necessary dependencies by running npm install.
  6. Start the Vue.js development server by running npm run serve.
  7. Navigate to http://localhost:8080 in your web browser to view the application.

Usage

The application displays a list of products retrieved from a Spring Boot backend and renders them in a table using Vue.js. You can view the list of products by navigating to http://localhost:8080 in your web browser.

Here's an example of the Vue.js component that renders the product table:

<template>
  <div class="product-list">
    <h1>Product List</h1>
    <table>
      <thead>
        <tr>
          <th>Product ID</th>
          <th>Product Name</th>
          <th>In Stock</th>
          <th>Price</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="product in products" :key="product.productId">
          <td>{{ product.productId }}</td>
          <td>{{ product.productName }}</td>
          <td>{{ product.inStock }}</td>
          <td>{{ product.price }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      products: [],
    };
  },
  mounted() {
    this.loadProducts();
  },
  methods: {
    async loadProducts() {
      const response = await fetch('/api/products');
      const products = await response.json();
      this.products = products;
    },
  },
};
</script>

Screenshot 2023-04-08 at 22 13 35

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Product-Inventory-Manager is a web application built with Vue.js and Spring Boot that allows users to manage product inventory, track stock levels, and view product information in a clean, organized interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published