Automation of restaurants search, table reservation and interaction with staff
The website is available at http://206.81.24.133
The server REST API is available at http://206.81.24.133:9339
Requirements: Java 11
In order for clients to communicate with the server deployed locally, the server's host and port must be specified
in org.itmodreamteam.myrest.shared.ClientProperties.Server
(module shared
)
./gradlew :server:build
./gradlew :js:build
Requirements: Android SDK (SDK location should be specified in local.properties file)
./gradlew :android:build
Requirements: latest Docker and Docker Compose
The REST API port is 9339 as configured in docker-compose.yml
export PROFILE=local
export DB_PASSWORD=123
cd server
docker-compose -p myrest up -d --build
cd ..
export PROFILE=local
export PORT=8080
cd js
docker-compose -p myrest-web up -d --build
cd ..
After the android module has been built, the location of the artifact to deploy on an Android smartphone
is android/build/outputs/apk/debug/android-debug.apk
.
The configuration MyRestServer
is created automatically on project initialization
The server requires connection to PostgreSQL database
Overridable VM options (Configuration / Environment / VM options):
- -Dserver.port=9339
- -Dspring.datasource.url=jdbc:postgresql://postgres:5432/main
- -Dspring.datasource.username=postgres
- -Dspring.datasource.password=
- -Dstorage.directory=/home/user/Documents/storage
Run ./gradlew :js:run --continuous
Requirements: Android SDK
The configuration MyRest.android
is created automatically on project initialization
If an Android device emulator is available, it will be configured. If a real Android device is connected via USB cable and debug mode is enabled, the device will be configured for running.