-
Notifications
You must be signed in to change notification settings - Fork 2
1. Installation guide
Sanjoy Kumer Deb edited this page Jan 23, 2018
·
4 revisions
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:
-
Setup you favourite java IDE which can run Spring based projects.
-
Setup mysql server. Skip if you have already.
-
Setup gradle. Skip if you have already.
-
Download or clone this project.
-
Configure Database :
- Connect to your mysql server with your credential. Mine is username: root,Password : admin
- Run DDL from "FreightManagement/server-config/database/freight_management_ddl.sql"
- Run DML from "FreightManagement/server-config/database/freight_management_dml.sql"
- Thats fine for database setup
-
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.
- Change database properties in "FreightManagement/src/main/resources/application.properties".
change following data.
-
Open command promt. Goto project directory.
-
Run following command "gradle clean build -x test". Because test code not yet ready.
-
If clean build success then run "
gradle bootrun
". This command run application on tomcat web server. -
I think that's all to setup project.