InstaGram Backend

DataBase

Sql_Workbench

Data Flow

Controller -- > Controller package handels all type of Api request.

Model --> Inside model package we store our entity as class

Service--> Inside the service package,we write all type of the business logic inside Service class

Repo -->Inside Repo Package we have repo interface for each class that allow us to make CRUD opperation

Mappings used in My Project

@OneToOne

@OneToMany

Git Commands

$ git init
$ git status
$ git add
$ git commit -m "rakeshCommit"
$ git remote add origin https://github.com/rakesh1234-png/Instagram-Backend.git

$ git push -u origin master


Application Properties

spring.datasource.url=jdbc:mysql://localhost:3306/InstagramDb
spring.datasource.username=root
spring.datasource.password=1Ake2sh@3
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update

spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.use_sql_comments=true
spring.jpa.properties.hibernate.format_sql=true