How to Set Up and Build the Biking2 Project

Oct 11, 2023 | Programming

Welcome to your guide on how to get started with the Biking2 project! Whether you’re a budding developer or a seasoned programmer, this article lays out the essential steps to set up the Biking2 project, highlighting key components and troubleshooting common issues along the way.

Abstract

The Biking2 project is designed as a hands-on application utilizing Java 8, Spring, Spring Boot, and AngularJS. It is currently live at biking.michael-simons.eu. For those keen on learning more, visit the about page or dive into the series of blog posts on developing a web application with Spring Boot, AngularJS, and Java 8.

Project Architecture

The project’s architecture is documented comprehensively in the arc42 structure, utilizing AsciiDoc format found in the arc42-template.

Getting Started

Here’s how to get the project up and running on your local environment:

  • Clone the repository from GitHub.
  • Make sure you have Java 8, Maven, and Spring Boot installed on your machine.
  • Install GPSBabel, which is essential for building the project without errors. You can find it on GPSBabel’s official website.
  • Navigate to the project directory in your terminal.
  • Use the provided command: ./mvnw (or mvnw.cmd on Windows) to build the project.

Configuring GPSBabel

If you’re encountering issues with the tracks log database, ensure that you have GPSBabel set up properly. The Biking2 project looks for the GPSBabel binary in /opt/local/bin/gpsbabel by default. If this differs on your system, you can specify the path by creating an application.properties file in the root of the project containing:

biking2.gpsBabel = pathtogpsbabelbinary

GPSBabel is available for all major operating systems, including Windows, so check its availability if you face compilation issues.

Troubleshooting Common Issues

As with any new project, you might encounter a few hiccups. Here are some common troubleshooting steps:

  • If the project doesn’t compile, double-check that GPSBabel is correctly installed and accessible from your command line.
  • If you find that your tests, particularly TracksControllerTest, are failing, this is usually due to the absence of the GPSBabel binary in your path. Ensure that the path to the GPSBabel binary is correctly set in the application.properties file.
  • For other compilation issues, consider exporting the following Java options in your terminal before running the project:
  • --add-opens java.base/sun.nio.ch=ALL-UNNAMED
    --add-opens java.base/java.io=ALL-UNNAMED
    --add-opens java.base/java.lang=ALL-UNNAMED
    --add-exports java.base/sun.nio.ch=ALL-UNNAMED

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

Conclusion

By following the steps above, you should have a smooth sailing experience setting up the Biking2 project. It’s an excellent project to enhance your knowledge of Java, Spring, and AngularJS, paving the path for your successful web development journey.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox