Giter Site home page Giter Site logo

malansl / inventory-management-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akash-goyal-github/inventory-management-system

0.0 0.0 0.0 1.13 MB

⭐Inventory Management System⭐demonstrates the CRUD (Create, Read, Update and Delete) operations which is done using Tech Stack ⭐Angular, Spring Boot and Mysql. 💯 💥. On the landing page of the application displaying all the records where user can insert/create the Product, update the Product, delete the Product. 💯 💥

JavaScript 1.60% Java 29.39% TypeScript 43.11% CSS 11.09% HTML 14.81%

inventory-management-system's Introduction

Airbus Inventory Management System


Objective:

  1. Design and implement the REST APIs to integrate with Sql database
      1. GET all products of a given category
      2. GET all products
      3. POST to add new product
      4. PUT to update a existing product
      5. Delete a product
  2. Implement APIs with the best REST Practices.
  3. Implement custom error handling in APIs to gracefully handle all exceptions.
  4. Use JWT Tokens and validate all endpoints for security.
  5. Develop a UI:
      1. Use REST APIs to display all the product names, description and units in a table, 
      2. Filters for data.
      3. Add / Update the product.
      4. Search Product based on Category

RoadMap:

  1. Login to the Angular Application.
      
      Default Login Credentials:
        username: [email protected]
        password:1234
        
  2. Perform Any CRUD Operations.

Actions:

    1. Fork this repository.
    2. Clone the repository and cd into spring boot files.
    3. Install dependencies through npm install in Angular AirbusInventory.
    5. Create database and tables in your Local System:-
          1. Create a Database in your system: create database Product;
          2. Create Product, User Tables
          (commands given below in Road Map Test and also in Spring -> src/main/resources-> schema.sql)
    6. Run the airbus-management-spring as Spring boot App on the server port 8080 and configure the datasource with your mysql user credentials(in Application Properties).
    7. Run the frontend -ng serve which shall run on port:4200.

RoadMap to test Inventory Management System project:

This project was generated with Angular CLI: 12.2.3.

Create Tables : Go to

Credentials to login to my sql:- (change in application.properties file in Spring Project)

  1. Creating Product Database-

     create database Product;
    
  2. Creating Product Table-

     use Product;
     drop table Product;
     create table Product(
     productId varchar(256) Unique not null,
     productName varchar(256),
     productDescription varchar(3500),
     productCategory varchar(256),
     units int
     );
    
  3. Creating User Table-

     drop table User;
     create table User(
     username varchar(256),
     password varchar(256)
     );
    
  4. Inserting Manual Data in user Table-

     use Product;
     insert into User(username,password) Values("[email protected]","$2a$10$slYQmyNdGzTn7ZLBXBChFOC9f6kFjAqPhccnP6DxlWXx2lPk1C3G6");
     insert into User(username,password) Values("airbus02","$2a$10$ZnnAdfh3cc7a/b1aODLeoOjifNPbHL6Vo8kpRJj.muPsVp1697hJO");
     
     //These are encrypted password using Bcrypt.( We have used Bcrypt so that no one can access our password from database.
     
     1st one means:- username - [email protected], password- password
     2nd one means:- username - [email protected], password- 1234
    

Note:- The same SQL Statements are also present in schema.sql file (Under src/main/resources)

Know your server:

  1. Login to the application -

Post Request - http://localhost:8080/airbusManagement/JWT/authenticateUser

Expecting Json data-{username, password}

Assumptions:-

1. username should be of Email Id format.
2. username and password can not be Null.

    Default Login Credentials:
                username: [email protected]
                password:1234
  1. GET all products -

Get Request - http://localhost:8080/airbusManagement/getAllProducts

  expecting header - { 'Authorization', Bearer ${token} }.
  1. GET all products of a given category -

Get Request - http://localhost:8080/airbusManagement/getProductsByCategory/{categoryName}

expecting header - { 'Authorization', Bearer ${token} }.
  1. Add all products -

Post Request - http://localhost:8080/airbusManagement/addProduct

  Expecting Json data - {productId,productName,productDescription,productCategory,units} 
  expecting header - { 'Authorization', Bearer ${token} }.
  1. Update product -

Post Request - http://localhost:8080/airbusManagement/updateProduct/{ProductId}

  Expecting Json data - {productId,productName,productDescription,productCategory,units} 
  expecting header - { 'Authorization', Bearer ${token} }.
  1. Delete product-

Delete Request - http://localhost:8080/airbusManagement/deleteProduct/{ProductId}

expecting header - { 'Authorization', Bearer ${token} }.

Stack:

-Spring Boot Application
-Spring MVC
-Spring Jdbc
-Maven
-sql database
-Angular

Steps to be followed in running Angular:

  1.npm install, npm run build, npm serve.

features used for UI display:

  1. Angular Material
  2. Responsive Design, Bootstrap, HTML 5.1, CSS

For further help:

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.


inventory-management-system's People

Contributors

akash-goyal-github 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.