Giter Site home page Giter Site logo

lianyz / product-management-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akraskovski/product-management-system

0.0 2.0 0.0 22.9 MB

Sample PIM system, providing the process of working with products

License: Apache License 2.0

TypeScript 22.97% CSS 1.10% HTML 21.72% JavaScript 0.42% XSLT 1.74% Java 52.04%

product-management-system's Introduction

Product Management System

Build Status

Web application produces the system, working with products, stocks and shops resources.


Server side technologies stack:

  • Java 8
  • Spring Boot (Security, Data Jpa, Web)
  • JWT (As a security base point)
  • Hibernate Jpa
  • PostgreSQL

Client: Angular 4.

Build tools:

  • Gradle
  • Webpack

Installing the project

Installing environment (You need Java 8 installed):

  1. Download Gradle

    Unpack and set path in the environment variable Path to foler /bin.

  2. Download PostgreSQL from official site or from docker hub: docker pull postgres:latest

  3. Download NodeJS with npm.

Building project

  1. Clone project from this repository.

  2. Start PostgreSQL, docker command: docker run --name postgres -v /opt/db/postgres:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=root -e POSTGRES_DB=postgres -p 5432:5432 -d postgres

  3. Change(if needed) in application.properties project properties, exactly:

  • URL and port to your database
  • username
  • password
  • secret security key

Run backend:

  • Manually:
  1. Go to the server package cd server/

  2. Run the command gradle jar, java -jar build/libs/product-management-system.jar or just gradle bootRun

  • With docker:
  1. Go to server directory: cd server/

  2. Build server jar, using gradle command: gradle clean build

  3. Build an image: docker build -t pms-image .

  4. Start docker container: docker run --name pms-server --link postgres -p 8080:8080 -d pms-image

Run client:

  • In console, go to the project root root.
  • cd client/
  • npm i
  • npm start

Tests

To run server tests use command: gradle test

To run client tests go to client folder in project and use command:

  • npm run selen-update
  • npm run selen
  • npm run test

Debug

To debug the client use npm run server to run Webpack DevServer (port :3000)

Logging

  • Logs save to dir /server/log/pms/general.YYYY-MM-DD.log.

product-management-system's People

Contributors

akraskovski avatar

Watchers

James Cloos avatar lianyz 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.