Giter Club home page Giter Club logo

kirana_register's Introduction

kirana_Register

The Kirana Management System is a Java-based application designed to manage transactions and store owner information in a Kirana store.

Project Structure

The project is organized into several packages, each serving a specific purpose:

  • com.kirana.management.model: Contains the entity classes representing the data model.
  • com.kirana.management.dto: Contains Data Transfer Objects (DTOs) used for communication.
  • com.kirana.management.repository: Provides Spring Data JPA repositories for database interaction.
  • com.kirana.management.service: Defines service interfaces and their implementations for business logic.
  • com.kirana.management.controller: Contains controllers handling HTTP requests.

How to run

  • I have use H2 database so you can directly run this code and spring will automatically establish connection to the database.
  • start the main spring function and
  • Use postman for check api endpoint.

Tech and Others

Screenshots of some results.

  1. New Store Owner : it can be done using - http://localhost:8080/api/storeOwner/create and passing ownerName , storeAddress and balanceINR as request body.

image

  1. New Transaction : it can be done using - http://localhost:8080/api/transaction/new and passing type , transactionAmount and date as request body. This will return transaction json response with all the required information. Trannsaction will affect the balanceAmount of owner.

image

  1. All Transaction by Type : it can be done using - http://localhost:8080/api/transaction/all/debit it can be credit also. This will return list of all transaction of specific type.

image

  1. All Transaction by Date : it can be done using - http://localhost:8080/api/transaction/all/date/2020-01-11 in this date should be of "yyyy-MM-dd" pattern. This will return list of transaction occur on the given date.

image

kirana_register's People

Contributors

dhruvkumar07 avatar

Watchers

 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.