The project aims to build a sub module of the internal CRM, called "Capability Development System". It provides below major features for the employees and the managers to define the career paths and the related training plans.
-
JDK 11(AdoptOpenJDK LTS)
-
Node.js
-
npm
-
Maven
-
RabbitMQ
-
Docker
Notes on setting up Maven: Add the bin folder inside extracted folder to your user PATH environment variable (How to add: https://www.imatest.com/docs/editing-system-environment-variables/#Windows)
-
You need a PostGreSQL server running. Install and run PostGreSQL according to your OS with username=postgres, password=Abcd1234, database=postgres
- Install and start postgres server on Windows:
-
Download postgres binary from https://www.enterprisedb.com/download-postgresql-binaries, extract and navigate to its bin folder:
cd pgsql\bin
-
initialize database with password Abcd1234 (only needed for first time configuration after download)
initdb -D ..\pgdata -U postgres -W -E UTF8 -A scram-sha-256
-
start database (needed everytime to start project)
pg_ctl -D ..\pgdata -l logfile start
-
- Install and start postgres for other operating system:
- Install and start postgres server on Windows:
-
Start the authentication service (spring boot project)
-
Download source: http://tfs.logigear.com/MWD/_git/CDO
cd authentication
-
Run project either SpringToolSuite4 or command as following
- for Windows (if commands could not run, see Notes* below):
mvnw spring-boot:run
- for other operating system (if commands could not run, see Notes* below):
./mvnw spring-boot:run
-
-
Start the admin service (spring boot project)
-
Download source: http://tfs.logigear.com/MWD/_git/CDO
cd admin
-
Run project either SpringToolSuite4 or command as following
- for Windows (if commands could not run, see Notes* below):
mvnw spring-boot:run
- for other operating system (if commands could not run, see Notes* below):
./mvnw spring-boot:run
-
-
Start the manager service (spring boot project)
-
Download source: http://tfs.logigear.com/MWD/_git/CDO
cd manager
-
Run project either SpringToolSuite4 or command as following
- for Windows (if commands could not run, see Notes* below):
mvn clean install mvnw spring-boot:run
- for other operating system (if commands could not run, see Notes* below):
./mvn clean install ./mvnw spring-boot:run
-
-
Start the employees service (spring boot project)
-
Download source: http://tfs.logigear.com/MWD/_git/CDO
cd employees
-
Run project either SpringToolSuite4 or command as following
- for Windows (if commands could not run, see Notes* below):
mvn clean install mvnw spring-boot:run
- for other operating system (if commands could not run, see Notes* below):
./mvn clean install ./mvnw spring-boot:run
Notes*
If ./mvnw spring-boot:run could not run, please install mvn wrapper:
authentication$ mvn -N io.takari:maven:wrapper
-
Front-end is a webserver run at port 4200
-
The Angular application can be started with npm. First, you need to download the dependencies with:
crm-app-client$ npm install
-
Then, you start the server with:
crm-app-client$ npm start
-
You need a PostGreSQL server running. Install and run PostGreSQL according to your OS with username=postgres, password=Abcd1234, database=postgres Note: If you want to access PostGreSQL from outsite loclahost, edit pg_hba.conf in the installed folder and edit following line:
# IPv4 local connections: host all all all
Install postgres server on windows:
- Download postgres binary from https://www.enterprisedb.com/download-postgresql-binaries and extract it - cd pgsql\bin - initialize database: initdb -D ..\pgdata -U postgres -W -E UTF8 -A scram-sha-256 then enter password Abcd1234 (username is postgres) - start database: pg_ctl -D ..\pgdata -l logfile start
-
You need a RabbitMQ server running. Run the server according to the instructions for your OS, for example:
$ rabbitmq-server
Open to rabbitMQ web manager at http://localhost:15672/, login with default user 'gues't (password: 'guest'). Create user 'hung' with password 'hung' as following:
If you want to access your rabbitMQ server outside localhost, double click on created user and add permission for this user:
Front-end is a webserver run at port 4200
-
The Angular application can be started with npm. First, you need to download the dependencies with:
crm-app-client$ npm install
-
Then, you start the server with:
crm-app-client$ npm start
-
Install Docker Desktop
- Windows: Install Docker Desktop
- macOS: Install Docker Desktop on Mac
-
Change directory from root project to docker folder:
cd docker
-
Builds, (re)creates, starts, and attaches to containers for a service
docker-compose up -d
-
Run importDB.bat to create database