-
Clone the application
git clone https://github.com/debanshur/Auction-Service.git
-
Create MySQL database
create database auction_db
-
Change MySQL username and password and Admin Secret Key
-
open
application.properties
file. -
change
spring.datasource.username
andspring.datasource.password
-
change
api.secret.key
for Admin Secret Key
-
-
Copy properties file to Services
cp application.properties UserManagement/src/main/resources/ cp application.properties AuctionManagement/src/main/resources/
-
Docker build User Management
cd UserManagement docker build --tag user-service:latest -f Dockerfile .
-
Docker build Auction Management
cd AuctionManagement docker build --tag auction-service:latest -f Dockerfile .
-
Docker Run
docker run -d --network host user-service:latest docker run -d --network host auction-service:latest
-
Swagger UI
-
User Management :
http://localhost:9000/swagger-ui.html
-
Auction Management :
http://localhost:9001/swagger-ui.html
-
-
Change MySQL username and password and Admin Sercet Key
-
open
application.properties
file. -
change
spring.datasource.username
andspring.datasource.password
-
change
api.secret.key
for Admin Secret Key
-
-
Run the script
sh deploy.sh