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

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




UserService

===





 
 
 

Recent Posts

See All
API Gateway

✅ What is an API Gateway ? An API Gateway  is a centralized entry point  that sits in front of your backend services or microservices. It...

 
 
 
SOC2

SOC 2  (System and Organization Controls 2) is a widely recognized compliance framework  that evaluates how an organization manages...

 
 
 

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