Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded web frontend code #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# data
graph-cache/

# web frontend
**/node_modules
package-lock.json
src/main/resources/de/geofabrik/openrailrouting/maps/js/main.js

# Created by https://www.gitignore.io/api/java,macos,maven,intellij
# Edit at https://www.gitignore.io/?templates=java,macos,maven,intellij

Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,9 @@ Missing features:
* a lot of features which would need data which is not in OSM (incline, structure gauges)
* support for barriers (e.g. gates)

## Web Frontend

This project includes a web frontend which is a fork of the original GraphHopper web frontend.

## Building

This project uses Maven (for the Java code) and NodeJS for the web frontend for building.
`npm` has to be installed.
This project uses Maven (for the Java code) for building.

```sh
git submodule init
Expand Down Expand Up @@ -116,7 +111,7 @@ java -Xmx2500m -Xms50m \
The tool currently supports three different actions (`ACTION` above):

* `import` to import the graph (graph will be stored at the subdirectory `graph-cache/`)
* `serve` to listen to HTTP requests for the API and the web interface on the port specified in a YAML configuration file (see
* `serve` to listen to HTTP requests for the API on the port specified in a YAML configuration file (see
`config.yml` as an example). If no data has been imported, an import of the routing graph will happen first.
* `match` do map matching. This command needs additional arguments called `OPTARG` above.

Expand Down
46 changes: 0 additions & 46 deletions package.json

This file was deleted.

38 changes: 0 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,44 +73,6 @@
</dependency>
</dependencies>
</plugin>
<!-- Build web frontend using system NPM -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>npm install</id>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm run bundleProduction</id>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>bundleProduction</argument>
</arguments>
<environmentVariables>
<BROWSERIFYSWAP_ENV>development</BROWSERIFYSWAP_ENV>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ public void initialize(Bootstrap<RailwayRoutingServerConfiguration> bootstrap) {
bootstrap.addBundle(new RailwayRoutingBundle());
bootstrap.addCommand(new RailwayImportCommand());
bootstrap.addCommand(new RailwayMatchCommand());
//bootstrap.addBundle(new AssetsBundle("/map-matching-frontend/", "/map-matching/", "index.html", "map-matching-frontend"));
//bootstrap.addBundle(new AssetsBundle("/de/geofabrik/openrailrouting/maps/", "/maps/", "index.html", "openrailrouting-frontend"));
}

@Override
Expand Down
25 changes: 0 additions & 25 deletions src/main/resources/de/geofabrik/openrailrouting/maps/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading