Coder Social home page Coder Social logo

mowagdy1 / retailstore Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 71 KB

My first project using Java & Spring Boot. I added unit tests. Also, I used a command and a factory pattern.

Java 100.00%
java spring-boot springboot clean-architecture factory-pattern command-pattern maven mockito h2-database

retailstore's Introduction

RetailStore

Yes, it's my first project using Java & Spring Boot. This side project is part of a store's backend. It contains three endpoints; user creation, bill creation, and bill retrieving. This bill may have a discount. It depends on predefined rules based on user type and other conditions.

I built this code with the clean architecture and wrote well-defined unit tests. Also, I used a command and a factory pattern.

Prerequisites

  • You need to have java installed on your system. You can get the Java from here.

  • You also need to have Postman installed if you want to test the endpoints yourself. Just download it from here.

  • What if you would like to run the unit tests? You can use your terminal or an IDE. For me, when it comes to IDE, I go with IntelliJ IDEA.

Running

After installing Java and cloning the project, You can run it with:

./mvnw spring-boot:run

And for running the unit tests:

./mvnw test

For Windows users, change "./mvnw" to ".\mvnw".

Built With

  • Java -> Programming Language
  • Spring Boot -> The Backend Framework
  • Maven -> Dependency Management
  • H2 -> In-Memory Relational Database
  • Mockito -> Mocking Framework For Unit Tests
  • Hibernate -> ORM

Author

retailstore's People

Contributors

mowagdy1 avatar

Watchers

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