Skip to content

Automation of restaurants search, table reservation and interaction with staff

Notifications You must be signed in to change notification settings

ItmoDreamTeam/MyRest

Repository files navigation

MyRest

Automation of restaurants search, table reservation and interaction with staff

.github/workflows/main.yml GitHub contributors GitHub last commit

GitHub issues GitHub closed issues

GitHub pull requests GitHub closed pull requests

Production

The website is available at http://206.81.24.133

The server REST API is available at http://206.81.24.133:9339

Build

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)

Server

./gradlew :server:build

Website

./gradlew :js:build

Android App

Requirements: Android SDK (SDK location should be specified in local.properties file)

./gradlew :android:build

Deploy

Requirements: latest Docker and Docker Compose

Server

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 ..

Website

export PROFILE=local
export PORT=8080
cd js
docker-compose -p myrest-web up -d --build
cd ..

Android App

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.

Development with IntelliJ IDEA

Server

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

Website

Run ./gradlew :js:run --continuous

Android App

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.

About

Automation of restaurants search, table reservation and interaction with staff

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages