Giter Club home page Giter Club logo

order-ecommerce-java's Introduction

Order ECommerce SpringBoot Java App

Rewritten application from https://github.com/egen-engineering/ecommerce-kotlin

This service interacts with postgresDB to perform CRUD ops for order data

Make sure Java 17 and Docker is installed on your machine (https://www.docker.com/products/docker-desktop/)

Building the app

     ./gradlew clean build

Running the app : (choose one of the following method)

1. Run docker-compose to start both postgres and springboot app

    docker-compose up   
    docker container ls 

2. Run the app in IDE while postgres runs in the docker container

      docker-compose up postgres

Make appropriate changes to datasource in application.yml file Start the SpringBootApp in IDE using the following env args

-Dspring.datasource.orderecommercedb.url=jdbc:postgresql://localhost:5432/orderecommerce_db?currentSchema=public
-Dspring.datasource.orderecommercedb.name=orderecommerceuser
-Dspring.datasource.orderecommercedb.password=orderecommercepwd
-Dspring.datasource.orderecommercedb.hikari.connectiontimeout=60000
-Dspring.datasource.orderecommercedb.hikari.maximumpoolsize=5
-Dspring.datasource.orderecommercedb.hikari.poolname=orderecommercedb
-Dspring.datasource.orderecommercedb.hikari.autocommit=false
-Dservice.name=orderecommerce
-Dspring_application_context_path=/order-ecommerce

Note:

  • All the env args are specified in the docker-env-file
  • PostgresSQL startup create script is specified within DockerCompose setup.sql
  • Verify running instances from Docker Desktop

Swagger : Use to validate API end points

http://localhost:8080/order-ecommerce/swagger-ui/index.html

order-ecommerce-java's People

Contributors

dilenpant avatar shouryapunj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.