Skip to content

Dream1Master/inteca-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

inteca-task

Prerequisites

Building the app from scratch

Building process consist of 2 steps:

-prepare docker image for back-end application (IntecaTaskApp) -prepare docker image for front-end application (IntecaAppUI)

Prepare docker image for back-end application (IntecaTaskApp)

To prepare docker image for back-end enter IntecaTaskApp root folder and then run:

mvn clear package docker:build

Maven do all job for you.

At the end you will recive springio/inteca-task-app:latest docker image.

Prepare docker image for front-end application (IntecaAppUI)

To prepare docker image for front-end enter IntecaAppUI root folder and then run:

npm install

Command above install all requires packages from package.json.

Next run command:

ng build

This command build our project and create dist folder.

And the last step is to create docker image with command:

docker build -t angular/inteca-task-ui .

This command prepare docker image angular/inteca-task-ui.

Run Application

To run application run commands below:

#run container for database
docker run \
--name inteca-task-mysql \
-e MYSQL_ROOT_PASSWORD=zr~R9XBn\<n}k \
-e MYSQL_DATABASE=intecatask \
-e MYSQL_USER=serhiy \
-e MYSQL_PASSWORD=dbp4ss \
mysql:latest

#run container for back-end
docker run \
--name inteca-task-app \
--link inteca-task-mysql:mysql \
-p 8080:8080 \
-e DATABASE_HOST=inteca-task-mysql \
-e DATABASE_PORT=3306 \
-e DATABASE_NAME=intecatask \
-e DATABASE_USER=root \
-e DATABASE_PASSWORD=zr~R9XBn\<n}k \
springio/inteca-task-app 

#run container for front-end
docker run \
--name inteca-app-ui \
-p 4200:4200 \
--link inteca-task-app:intecaapp \
angular/inteca-task-ui

Thats it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published