Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
out
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

orderService

part of order management system service

###Step 1 : Configure Postgres Database using docker

$ docker run --name oms_postgres -p 5432:5432 -e POSTGRES_USER=dbuser -e POSTGRES_DB=orders_db -e POSTGRES_PASSWORD=password -d postgres

Note : if the container is already running :

$ docker start oms_postgres 

To create orders_db :

docker exec -it 5328f411af86 psql -d postgres -U dbuser -c "CREATE DATABASE orders_db;"
docker exec -it 5328f411af86 psql -d postgres -U dbuser -c "GRANT ALL PRIVILEGES ON DATABASE orders_db TO dbuser;"

Once the DB is up and running configure its details in application.properties file

####Build

./gradlew build

###Run

./gradlew bootRun

docker exec -it 5328f411af86 psql -d postgres -U dbuser

About

past of order management system service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published