top of page

Rest API + AWS RDS Demo

  • Writer: Anand Nerurkar
    Anand Nerurkar
  • Dec 12, 2024
  • 1 min read

How to develop rest api with AWS RDS and test it locally.


Pre-Requisite

1. Eureka service Git Hub -

2.Restaurent Service

USer Service

Git hub -


3. AWS free tier account

4. AWS RDS MySQL DB created



Steps

1. Download the source code into local

2, Import it into eclipse workspace

3. login to AWS free tier account-> create MYSql DB Instance as below

ree

port =3306


Edit applition.yml file to point to aws rds as below


server:

port: 9091


spring:

profiles:

active: local


application:

name: RESTAURANT-SERVICE

datasource:

username: admin

password: password

driver-class-name: com.mysql.cj.jdbc.Driver

jpa:

hibernate:

ddl-auto: update

show-sql: true

database-platform: org.hibernate.dialect.MySQL5InnoDBDialect



3. Click Run=maven install

4. Run application

5. Test api in postman as below

ree

ree

ree

UserService

===

ree

ree

ree

ree

 
 
 

Recent Posts

See All
why springbatch job??

Spring Batch Job Spring Batch is designed exactly for batch workloads  like Pro*C migrations. ✅ Advantages: Chunk-oriented processing...

 
 
 
Pro*c Job to Spring Batch Job

Example1: 📌 Background Pro*C job  → Written in C with embedded SQL, often used for batch ETL-like jobs in Oracle. Spring Batch job  →...

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
  • Facebook
  • Twitter
  • LinkedIn

©2024 by AeeroTech. Proudly created with Wix.com

bottom of page