Skip to content

EricCheung3/op-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

op-backend

Openprice system backend code.

Local Development Environment Setup

Install Java8 JDK from Oracle

Install Apache Maven 3.3.3

Install Java IDE Eclipse from Spring Tool Suite 3.7.2.RELEASE

Also download Project Lombok and run the lombok.jar to add it into Spring Tool Suite.

Install Git

Install Docker

Install MySQL 5.6

Install MySQL Workbench

Github Account

Create free account in Github: https://github.com/

Ask admin to add your account to groundtruth (opgt).

Setup SSH key for Github

Fork the project from Open Price Backend Project to your personal account through Web UI at Github.

Checkout code

Create a local folder for ~/groundtruth/git, and check out the code from Github your private repository for op-backend to this folder.

Try to run mvn clean install inside ~/groundtruth/git/op-backend to see if you can build the system locally.

When your change is done, do a pull request, and team lead will merge the changes into release branch. See Software Development Life Cycle document for detail process.

Run Openprice Backend Project locally with Docker

Setup local image storage folder

Create a local image storage folder at ~/groundtruth/images/, and add subfolder receipts.

Setup local log folder

Create a local log folder at ~/groundtruth/logs/.

Run Backend Servers inside Docker container

Assume you alreadt have Docker installed. If docker VM is not created for the project, run this script to create docker-machine create --virtualbox-disk-size "20000" --virtualbox-cpu-count "2" --virtualbox-memory "4096" -d virtualbox opgt

Copy op-backend/scripts/local/* to your local folder, such as ~/groundtruth/local, and make sure the bash script files are executable. Or run chmod +x *.

For first time in a Terminor window to run docker, setup the env by running eval "$(docker-machine env opgt)"

Then run ./init-start to build and run the servers in Docker.

About

Openprice Backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages