Git Product home page Git Product logo

api-la-matraca's Introduction

API La Matraca

It is a system designed to manage the "La Matraca" livestock farm. Specifically, the control of vaccines, veterinary visits, buying and selling of cows.

Entity - Relation Model

For the database, a relational DB was used with MariaDB as the management engine:

Entity-RelationDiagram

Architecture

A layered architecture was defined:

  1. Persistence Layer: Repositories.
  2. Domain Layer: Entities
  3. Application / Business Layer: Services and controllers.

The project is organized into functional modules/packages (classes are grouped according to their use case or functionality):

Structure

Technical specifications

The project is developed with Java JDK version 21.0.2, using Spring Boot framework and Maven as the dependency manager.

The dependencies required to run the project are as follows (pom.xml):

  • Spring Web
  • Spring Data JPA
  • Spring Boot DevTools
  • Spring Security
  • Spring Boot Validation
  • MariaDB Driver
  • MapStruct to map DTOs and Entities:
<dependency>
	<groupId>org.mapstruct</groupId>
	<artifactId>mapstruct</artifactId>
	<version>1.5.5.Final</version>
</dependency>
  • Json Web Token for authentication:
<dependency>
	<groupId>io.jsonwebtoken</groupId>
	<artifactId>jjwt-api</artifactId>
	<version>0.12.3</version>
</dependency>
<dependency>
	<groupId>io.jsonwebtoken</groupId>
	<artifactId>jjwt-impl</artifactId>
	<version>0.12.3</version>
	<scope>runtime</scope>
</dependency>
<dependency>
	<groupId>io.jsonwebtoken</groupId>
	<artifactId>jjwt-jackson</artifactId>
	<version>0.12.3</version>
    <scope>runtime</scope>
</dependency>

Security:

  • Encrypted passwords (BCryptPasswordEncoder)
  • Json Web Token
  • Roles

Design Patterns

  • Singleton
  • Template
  • Chain of Responsability
  • Builder

api-la-matraca's People

Contributors

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