Git Product home page Git Product logo

yenilikci / java-springboot Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 1.0 564 KB

(Java & React) Yazılım Geliştirici Yetiştirme Kampı Java kısmına ait yazılan kaynak kodlar ve ödev çalışmalarım.

Home Page: https://www.youtube.com/playlist?list=PLqG356ExoxZUuVYKLuiQLnref7Y4ims87

Java 99.87% HTML 0.13%
java oop spring open-closed-principle mernis inheritance nlayer-architecture rest-api aop

java-springboot's Introduction

JavaCamp

Kamp sürecinde yazılan kaynak kodlar ve ödev çalışmalarım.

Day 1

1)Intro

1-intro

Day 2

2)oopIntro

2-oopIntro

2.1)oopIntro ~ Homework

2 1- oopintro

2 1-oopintro-2

Day 3

3)oopIntro2

3-oopintro2

3.1)inheritance

3 1-inheritance

3.2)inheritance2

3 2-inheritance2

3.3)inheritance ~ Homework

3 3-inheritance-homework

Day 4

4)interfaces

4-interfaces

4.1)MernisCoffee

4 1-merniscoffe

4.2)GameBackEnd

4 2-gamebackend

4 2-gamebackend2

Day 5

5)nLayeredDemo

5-nlayereddemo

5.1)E-commerce

5 1-ecommerce

Day 6

6)northwind

ss_springinitializr

6

6.1)VeritabanıTasarımıKursu

  • Soyutlama ve miras alma odaklı tasarım yapıldı.
  • Single Responsibility ve Open Closed prensiplerine uyuldu.
  • Primary key tabloların, foreign key tablolar hakkında bilgi tutmamasına dikkat edildi.
  • Bir daha tekrarlanmaması gereken veriler için unique key verildi.
  • Nesnel bir veritabanı tasarımı gerçekleştirilmiş oldu.

senaryo

tablolar

6.2)HRMS-PostgreSQL

  • Veritabanı ismi hrms olarak belirlendi.
  • pgAdmin4 ile oluşturuldu.
  • Single Responsibility ve Open Closed prensiplerine uyuldu.
  • Tüm istekler yerine getirildi. (req1, req2, req3)
  • Nesnel bir veritabanı tasarımı gerçekleştirilmiş oldu.

Database

6.3)HRMS

  • Katmanlar yazıldı.

hrms_project

  • Sistemde bulunan genel iş pozisyonlarını listeleyecek api yazıldı.

ss_basarili

7)northwind-2

swagger implementasyonu için https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api adresine gidelim

3 ve 5.1 kısımlı bağımlılıkları pom.xml'e ekleyelim.

		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger2</artifactId>
			<version>2.9.2</version>
		</dependency>
		<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-swagger-ui</artifactId>
			<version>2.9.2</version>
		</dependency>

sonra 4.1 kısımlı kodu main fonksiyonumuzun altına ekleyelim

@Bean
	public Docket api() {
		return new Docket(DocumentationType.SWAGGER_2)
				.select()
				.apis(RequestHandlerSelectors.basePackage("kodlamaio.northwind"))
				.build();
	}

importlarımızı yapmayı unutmayalım

en yukarıya @EnableSwagger2 anotasyonumuzu ekleyelim

swagger-ui.html

swagger ui html

/api/products/getall

product-getall product-getall-2

/api/products/add

products-add products-add-2

8)northwind-3

/api/products/getAllByPage

getallbypage

/api/products/getAllDesc

getalldesc

/api/products/getByProductName

getbyproductname

/api/products/getByProductNameAndCategoryId

getbyproductnameandcategoryid

/api/products/getByProductNameContains

getbyproductnamecontains

9)northwind-4

/api/products/getProductWithCategoryDetails

api-products-getProductWithCategoryDetails

/api/users/add

api-users-add

java-springboot's People

Contributors

yenilikci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

firat73

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.