Skip to content

1. Installation guide

Sanjoy Kumer Deb edited this page Jan 23, 2018 · 4 revisions

Simple Spring boot project.

This is a project to find all paths and cost between two locations.

Used Technology :

  • Spring Boot-1.5.7
  • Spring data jpa
  • Google map api
  • Mysql database
  • Tomcat Web Server!

To run this project you have to follow below steps:

  1. Setup you favourite java IDE which can run Spring based projects.

  2. Setup mysql server. Skip if you have already.

  3. Setup gradle. Skip if you have already.

  4. Download or clone this project.

  5. Configure Database :

    1. Connect to your mysql server with your credential. Mine is username: root,Password : admin
    2. Run DDL from "FreightManagement/server-config/database/freight_management_ddl.sql"
    3. Run DML from "FreightManagement/server-config/database/freight_management_dml.sql"
    4. Thats fine for database setup
  6. Configure project :

    • Change database properties in "FreightManagement/src/main/resources/application.properties". change following data.
      spring.datasource.url=jdbc:mysql://localhost:3306/freight_management
      spring.datasource.username=root
      spring.datasource.password=admin
    • Change on logback file "FreightManagement/src/main/resources/application.properties"
      Change <property name="DEV_HOME" value="c:/logs" /> value to your favourate location. Unix user must need to change log location.
    • Project setup almost done.
  7. Open command promt. Goto project directory.

  8. Run following command "gradle clean build -x test". Because test code not yet ready.

  9. If clean build success then run "gradle bootrun". This command run application on tomcat web server.

  10. I think that's all to setup project.

Clone this wiki locally