- git version 1.6.5 or higher
- Docker/Docker-Compose (Recommended)
or
- git version 1.6.5 or higher
- Maven
- NPM
For installation of these software applications see the below links:
For git:
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
For docker and docker-compose on Windows:
https://docs.docker.com/docker-for-windows/install/
For docker and docker-compose on Mac:
https://docs.docker.com/docker-for-mac/install/
For docker on Ubuntu:
https://docs.docker.com/install/linux/docker-ce/ubuntu/
For docker-compose on Ubuntu:
https://docs.docker.com/compose/install/
For installing Maven:
https://maven.apache.org/install.html
For installing npm:
https://nodejs.org/en/
In order to run the tests, you will have to have to run them with either docker/docker-compose or with maven.
Open up a terminal or command prompt on your OS of choice (Windows/Linux/Mac), and enter the following commands in a directory where you want to project to be stored:
git clone --recursive https://github.com/NicholasNagy/SOEN343Component.git
cd SOEN343Component
git submodule update --remote
Note: It is very import to specify to git to clone the repository recursively or else the submodules won't be cloned, and hence part of the project won't be cloned.
You will need the following installed on your computer:
- git version 1.6.5 or higher
- Docker and Docker-Compose
Now in your terminal type the following command:
docker-compose -f docker-compose.test.yml up
And the tests should run.
You will need the following installed on your computer:
- git version 1.6.5 or higher
- Maven
Now in your terminal type the following command:
mvn test
And the tests should run.
You will need the following installed on your computer:
- git version 1.6.5 or higher
- Docker and Docker-Compose
Open up a terminal or command prompt on your OS of choice (Windows/Linux/Mac), and enter the following commands in a directory where you want to project to be stored:
git clone --recursive https://github.com/NicholasNagy/SOEN343Component.git
cd SOEN343Component
git submodule update --remote
Note: It is very import to specify to git to clone the repository recursively or else the submodules won't be cloned, and hence part of the project won't be cloned
In the terminal run the following command in your terminal or command prompt and enter the following command in the directory of the project:
docker-compose -f docker-compose.deploy.yml up
At this point docker will build and deploy the containers and the web server will be hosted on port 4200 (obligatory for our CORS setup). One the containers are running, SPRING will display notify you in the terminal/command prompt.
If you desire to see the docker images build instead of pulling them from dockerhub, feel free to run the following commands to build and run the appropriate containers:
docker-compose build
docker-compose up
You will need the following installed on your computer:
- git version 1.6.5 or higher
- Maven
- NPM
Open up a terminal or command prompt on your OS of choice (Windows/Linux/Mac), and enter the following commands in a directory where you want to project to be stored:
git clone --recursive https://github.com/NicholasNagy/SOEN343Component.git
cd SOEN343Component
git submodule update --remote
Note: It is very import to specify to git to clone the repository recursively or else the submodules won't be cloned, and hence part of the project won't be cloned
In the the root directory of the project where the pom.xml is run the following:
mvn package
Afterwards, run the jar from the root directory by entering the following:
java -jar /ws/component/target/PM-0.0.1-SNAPSHOT.jar
Navigate in a NEW terminal or command prompt to the directory of the project and enter the subdirectory found in src/main/UI. Once there enter the following commands:
npm install
npm install -g @angular/cli
At this point, you should be able to run the project with the following command:
ng serve
At this point, the server should be running on port 4200 (obligatory for our CORS setup), and you should be able to view the webserver on port 4200.
For a user manual on using the System, check out our wiki