- Download and install PostgreSQL
- Create database
CREATE DATABASE atptdm; - Create user tdmadmin
CREATE USER tdmadmin WITH PASSWORD 'tdmadmin'; - Grant privileges on database to user
GRANT ALL PRIVILEGES ON DATABASE "atptdm" to tdmadmin;- To setup local copy of database you need to build project by maven "clean" and "package".
Please notice that Maven must be configured with
Profiles -> migration-on-build-pgproperty or it WILL NOT setup basic DB strusture. If you had already set up DB structure, don't use this property. Basic structure of DB (constraints and tables) is scripted in migration module (src/main/scripts/install.xml)
- Main class
org.qubership.atp.tdm.Main - VM options (contains links, can be edited in parent-db pom.xml):
-Dspring.config.location=C:\atp-tdm\qubership-atp-tdm-backend\target\config\application.properties -Dspring.cloud.bootstrap.location=C:\atp-tdm\qubership-atp-tdm-backend\target\config\bootstrap.properties - Select "Working directory"
$MODULE_WORKING_DIRS$
Just run Main#main with args from step above
- PostgreSQL installed local
1.2. Download and install PostgreSQL.
1.2. Create database: atptdmtest
1.3. Port: 5433
1.4. Create user and pass tdmadmin / tdmadmin
1.5. Grant privileges on database to user
- Docker installed local
1.2. VM options: -DLOCAL_DOCKER_START=true
- Download and install Node.js
- Install node modules from package.json with
npm i
Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run npm run hmr for a dev server with hot module replacement. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files but won't reload the page.
Run npm run svg for injecting svg bundle from svg-icons folder to index.html.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.
Run npm run report to see the report about bundle.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
- Build project first: build by maven "clean" and "package", run as backend on port 8080.
-
Navigate to the builder job: https://cisrvrecn.com/view/Public/job/DP.Pub.Deployer_v2
-
Click "Build with Parameters"
-
Fill requires parameters:
- CLOUD_URL = dev-atp-cloud.com:8443
- OPENSHIFT_WORKSPACE = dev1
- OPENSHIFT_USER = {domain_login}
- OPENSHIFT_PASSWORD = {domain_password}
- ARTIFACT_DESCRIPTOR_GROUP_ID = org.qubership.deploy.product
- ARTIFACT_DESCRIPTOR_ARTIFACT_ID = prod.ta_atp-tdm
- ARTIFACT_DESCRIPTOR_VERSION = master_20191112-002747
- DEPLOYMENT_MODE = update
-
Click button "Build"
-
Navigate to the openshift
-
Navigate to the "Applications" -> "Routes"
-
Find a link to the tool with the specified project name
-
Check the tool - open the url from the column "Hostname"