/caso-2-grupo-2

This repositories contains, rest api with spring-boot, frontend application with angular and movil application with java

Primary LanguageJavaApache License 2.0Apache-2.0

Caso practico 2

Developers:

TODO: Add github profiles

Deploy

Build the .jar

$ mvn clean package -Pproduction -DskipTests

Create the service:

[Unit]
Description=Tirtec - API
After=syslog.target

[Service]
User=tirtec
ExecStart=/home/ubuntu/caso-2-grupo-2/rest-api/target/rest-api-0.0.1-SNAPSHOT.jar SuccessExitStatus=143 

[Install] 
WantedBy=multi-user.target

Run service:

$ sudo systemctl start tirtec

For testing purpose you can use screen to run the application.

$ sudo apt install screen

$ screen # Accept

Start the server with

$ java -jar /home/ubuntu/caso-2-grupo-2/rest-api/target/rest-api-0.0.1-SNAPSHOT.jar SuccessExitStatus=143 

Excute the server in second plane with:

$ Ctrl + A + D

See the actual executing services.

$ screen -list

Swith to session.

$ screen -r 26653