Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.64 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.64 KB

Ride-austin server application

How to prepare env

Prerequisites

Create database

  • mysql -u root -p
  • > create database ride_db
  • > create user 'rideaustin'@'localhost' identified by 'test123'
  • > grant all on ride_db.* to 'rideaustin'@'localhost'
  • Obtain mysql dump from RC server
  • mysql -u rideaustin -p ride_db < dump.sql
  • Add in /etc/mysql/my.cnf in [mysqld] configuration: lower_case_table_names = 1, then restart mysql service

Assembly and run (in repo directory):

  • $ cd PATH-TO-REPO-DIRECTORY
  • $ mvn clean package -DskipTests=true && mvn cargo:run -f app/pom.xml
  • localhost:8080 is ready

dev set-up

$ mvn dependency:sources to download all sources`

Integration tests execution (from IntelliJ IDEA)

docker container for mysql

docker run --name mysql-4-test \
-e MYSQL_ROOT_PASSWORD=toor \
-e MYSQL_DATABASE=ride_db \
-e MYSQL_USER=test \
-e MYSQL_PASSWORD=test123 \
-p 3307:3306 -d mysql --lower_case_table_names=1

docker container for redis

docker run --name redis-4-test -p 6378:6379 -d redis

Logging