Skip to content

alkuma/pricing-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pricing Server

Overview

This is a server that serves apis exposed by catalog module.

The api documentation is available at

Pricing API Documentation

Build

To build this server from source, perform the following steps:

Tools needed for build and test

  1. Any POSIX or Windows environment (this was developed on a POSIX environment)
  2. JDK 1.8.0_144-b01
  3. git 2.9.2
  4. gradle 4.1
  5. postgres sql v 9.6.4 postgres should have a database created for use with catalog service

How to perform the build

git clone https://github.com/alkuma/pricing-server.git gradle clean build #this will also run the unit tests. The war is generated in build/libs folder and is called pricing-server-1.0.0.war

Note : gradle clean build will also run the tests

Deploy

Tools needed to deploy

  1. JRE 1.8
  2. tomcat 9.0.0.M26
  3. postgres sql v 9.6.4 postgres should have a database created for use with pricing service

How to perform the deployment

To deploy, you must have a tomcat installation. In your tomcat installation create a folder catalog under webapps Unzip the generated war into this folder

  1. cd /path/to/tomcat/webapps

  2. mkdir -p pricing

  3. cp /path/to/gradle/project/build/libs/*.war .

  4. jar xf pricing-server-1.0.0.war

  5. rm pricing-server-1.0.0.war

  6. in /path/to/tomcat/webapps/catalog/WEB-INF/classes, there is a file called jdbc.properties. Populate the correct values of postgres hostname, postgres port, postgres database name, postgres user id, postgres password.

  7. in /path/to/tomcat/webapps/catalog/WEB-INF/classes, there is a file called catalog-service.properties. Populate the correct values of where the service is hosted for client side service discovery

  8. now you can start / stop tomcat using /path/to/tomcat/bin/shutdown.sh and /path/to/tomcat/bin/startup.sh By default tomcat will start on localhost:8080 but that can be changed by tweaking config scripts.

Test

Tools needed to deploy

  1. a browser or any http client for making GET, POST and DELETE calls
  2. a running deployment (see above).

How to perform the tests

The endpoint will be prefixed with api, eg if tomcat is running at localhost:8080, the api url will be http://localhost:8080/pricing/api/pricing/ Refer to the api documentation above to run the tests on the running system.

About

java rxjs resteasy server for pricing module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages