Skip to content

n11-TalentHub-Java-Bootcamp/n11-talenthub-bootcamp-graduation-project-omerozturk18

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

N11 Bootcamp Graduation Project

Hello, this project it was developed in line with The graduation assignment for The bootcamp offered free of charge in partnership with Patika & N11.

Technologies & Structures Used

  • Backend
    • Java 11
    • Spring Boot
    • Spring Data JPA
    • Spring HATEOAS
    • MapStruct
    • Loombak
    • Validation
    • Swagger
    • PostgreSQL
    • Unit Test
    • Builder Design Pattern
    • Factory Design Pattern
    • Single Design Pattern
    • Basic Result Type
    • Twilio Sms Send
    • tckimlik.nvi.gov.tr Mernis Check Customer
  • Frontend
    • React
    • Axios
    • Reactstrap
    • Formik
    • Yup
    • React Toastify

Setup

*** If You Do Not Have PostgreSQL Installed On Your Computer, You Can Use It Via Docker.

Cloning The Project

$ git clone https://github.com/n11-TalentHub-Java-Bootcamp/n11-talenthub-bootcamp-graduation-project-omerozturk18.git
cd n11-talenthub-bootcamp-graduation-project-omerozturk18/Backend

Configuration Settings

  • Open File ./src/main/resources/application.properties .

  • Adapt The Following Settings According to Yourself.

    • Replace The 172.25.192.1 Field Below With Your Own Ip Address.
spring.datasource.url=jdbc:postgresql://172.25.192.1:5432/n11-graduation-project
spring.datasource.username=postgres
spring.datasource.password=12345
spring.datasource.driver-class-name=org.postgresql.Driver
  • If You Change The database name, username and password and Will Use Docker, Please Also Update The docker-compose.yml Files

1) Backend Setup

mvn clean install

-> Running The Application Locally

  • Create a Database named n11-graduation-project in PostgreSQL.

  • Run The Application With The Commands Below.

mvn spring-boot:run

-> Running The Application With Docker

  • Run The Application With The Commands Below.
docker build -t omerozturk-backend . 
docker-compose up -d

*** If You Want To Use PostgreSQL Over Docker

  • Please Follow The Steps Below for PostgreSQL
    • Go to http://localhost:5050/browser/
    • Password is Same as docker-compose.yml
    • Right Click on Servers on The Left and Add a New Server
    • Set a Name on The Screen That Comes Up and Switch To The Connection Tab
    • Just Write Your Ip Address To The Host Address and Save It
    • Create a Database Named n11-graduation-project in PostgreSQL.
    • Run The Application With The Command Below.
docker start omerozturk-app-backend

*** If You Do Have PostgreSQL Installed On Your Computer

  • Please Follow The Steps Below
    • Create a Database Named n11-graduation-project in PostgreSQL.
    • Run The Application With The Command Below.
docker start omerozturk-app-backend

2) Frontend Setup

cd n11-talenthub-bootcamp-graduation-project-omerozturk18/Frontend

-> Running The Application Locally

  • Install npm packages
npm install
  • The Following Code is Used to Start The React Project.
npm start

-> Running The Application With Docker

  • Run The Application With The Commands Below.
docker build -t omerozturk-frontend . 
docker-compose up -d

Basic Result Type

DataResult

  • SuccessDataResult

200 Response body

{
  "success": true,
  "message": "",
  "data": []
}
  • SuccessResult

200 Response body

{
  "success": true,
  "message": "sdsd"
}
  • ErrorDataResult

Error: response status is 400

{
  "success": false,
  "message": "",
  "data": null
}
  • ErrorResult

Error: response status is 400

{
  "success": false,
  "message": "",
}
  • NotFoundException

Error: response status is 404

{
  "errorDate": "",
  "message": "",
  "detail": ""
}

ENDPOINTS

Crd Package

  • Credit Package

For Credit

Csr Package

  • Customer Package

For Customer

For Customer Guarantee

For Customer Credit

Cnt Package

  • Contact Package

For Message

Gen Package

  • Generic Package
  • Adapter

    • Credit Score Service
    • Mernis Service
    • Twilio Sms Service
  • Configuration

    • SwaggerConfiguration
    • TwilioConfiguration
  • Excaption

    • CustomizedResponseEntityExceptionHandler
    • ExceptionResponse
  • Utilities

    • Entity

      • BaseEntity
      • SmsRequest
    • Enums

      • EnumStatus
      • EnumYesNo
    • Result

      • Result
        • SuccessResult
        • ErrorResult
      • DataResult
        • SuccessDataResult
        • ErrorDataResult
    • Service

      • BaseEntityService
        • findAll
        • findById
        • save
        • delete

Uml Diagram

OpenApi Swagger

Author

Ömer Öztürk

About

n11-talenthub-bootcamp-graduation-project-omerozturk18 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published