Read Data from locally hosted OSM website

Hi All, We are working on finding the shortest route between two points. Added maven dependency of graphhopper-core and graphhopper-osm-reader to project. How to configure for reading the data from local OSM website where we will be creating custom routes between points ??. Thank you.