Coder Social home page Coder Social logo

osandadileepa / product-store Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 210 KB

Demo project with spring boot angular to show Product available and how to calculate its price.

Shell 1.37% Java 40.67% JavaScript 3.94% TypeScript 39.13% HTML 10.78% SCSS 2.49% Dockerfile 1.62%

product-store's Introduction

Getting Started

Application to show product price details and to calculate product price based on the UNIT price of a specific product.

Build and Deployment instruction

Development Environment setup

Make sure following are available

  • JDK 1.8
  • Docker and Docker Compose
  • Node 12.13.1
  • Angular CLI 8.3.xxx
  • PostgreSQL 12.4

PostgreSQL instance details

  • PostgreSQL instance should be exposed in localhost in port 5432
  • Default database store should be created with the credentials available in the yml file

Application source and development environment

  • Backend available at src/main/java
  • Frontend available at src/main/webapp
  • PostgreSQL instance can be generated by using docker-compose file at src/main/docker(command : docker-compose up)
  • Backend will be available by using following command at the project root.
SPRING_PROFILES_ACTIVE=dev ./gradlew bootRun
ng serve

Build application binary

In the project root directory execute the following bach script

  • Angular CLI above mentioned version should be available globally in order to build to work.
./build.sh

Start the application

  • PostgreSQL instance should available at locally, port 5432 with correct credentials in order to jar file to work.
java -jar -Dspring.profiles.active=dev build/libs/product-store-0.0.1-SNAPSHOT.jar

After executing above command application present at http://localhost:8080

Test cases

  • All the test cases written to test application core logics are available at src/test/java

Docker Build

  • Docker based build solution has implemented using Dockerfile and docker compose file also available to create the necessary environments.
  • Using the following command in the root directory to execute the build.
docker-compose up --build

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.