Giter VIP home page Giter VIP logo

springcommerce's Introduction

Midterm Project: SpringCommerce

Self-introduce

  • Student name: Trần Minh Trí
  • Student ID: 52000815
  • Subject: Thực hành Công nghệ Java - Nhóm 2 - Tổ 2
  • Lecturer: Võ Văn Thành

Link Youtube Project

Table of contents

Architecture

  • Software development pattern: Use MVC pattern for easier to maintain and modify the code. Allows creation of reusable code and more efficient development.
  • Software development princlple: Use TDD (Test Driven Development) principle but still incompleted.
  • Software development practices: Use Continuous Delivery/Deployment (CD) to automatically deployed to production after passing through a series of automated tests and approval steps..

Code structure

The project has a total of 4 modules, of which 2 main modules are Admin and Customer, 2 sub modules are Library and API. Two main modules Admin and Customer contains Config (to serve Spring Security) and Controller (to serve requests). Library module is responsible for providing all DTO (Data Transfer Object), Model, Repository, Service and Utils to serve 2 main modules, Admin and Customer. API module contains RestController to return results based on request.

Entity Relationship Diagram

ERD

How to run

Software install requirements: Intellij IDEA (Recommend using Ultimate version), MySQL server (Apache Netbeans or MySQL Workbench).
Here is steps to run Admin module (others module are same):

how-to-run

Verify APIs

Here is some snapshots of CRUD on Product (same for Order):

  • Products:
    Get all products:
    get-all-products

    Get product by id:
    get-product-by-id

    Create new product:
    create-new-product

    Update product by id:
    update-product-by-id

    Delete product by id:
    delete-product-by-id

  • Orders:
    Get all orders:
    get-all-orders

    Get orders by customer id:
    get-product-by-customer-id

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.