Skip to content

Latest commit

 

History

History
82 lines (57 loc) · 2.68 KB

README.md

File metadata and controls

82 lines (57 loc) · 2.68 KB

GetFitWithHenry

Running on local machine

Initial Set Up:

Ensure that Docker, Docker Compose and Android Studio is install in the local machine

*Note: Docker compose is automatically installed when installing Docker Desktop.

Before starting docker compose

Running procedure

Running procedure for Windows, MacOS (Intel/M1) & Linux (Ubuntu) are the same. Using Terminal, enter ADBackend file direction. Ensure that docker-compose.yml file is in the directory. You may use command 'ls' to verify.

  ls

Pulling docker image and running container with docker compose

  docker compose up

Verify if the containers are running

  docker ps -a

Stopping docker containers (ensure you are in the same directory)

  docker compose down

-or-

You may stop the docker compose through docker desktop. (Force stop: ^c)

*Note: DO NOT include '-' in docker compose cmd (i.e. docker-compose up). Running with hypen will generate '_' in container name which makes url invalid.


Android Application

  1. Open GetFitWithHenry android with Android Studio, we recommend to use API 29 for the emulated android device.
  2. Nagivate to Constants.java file (App/Java/model/Constants.java) and update the ip address.
public class Constants {
    public static String javaURL = "${host}:8080";
    public static String reactURL = "${host}:3000/android";
}
Parameter Type Description
host string Your machine's IPv4 address.
  1. Run android application.

React Web Application

In your browser, enter your host ip with the stated port number. (e.g. 192.XX.XX.X:3000)

  • To access user react application:

${host}:3000

  • To access admin react application:

${host}:3001

Parameter Type Description
host string Your machine's IPv4 address.