![]() ![]() The classes in these packages use the classes from the rest of the app to process requests and build responses. ![]() huskymaps.handlers.*: Code relating directly to handling HTTP requests received by the server.aph: The data structures and supporting code that represent the map data.Overview Background An overview of the components of the HuskyMaps server.įor the most part, the code for the HuskyMaps server is broken up into packages that separate its functionality into distinct components: If you set a breakpoint in, you’ll be able to inspect the request sent from the web browser! In this homework, we’ll be making changes to the logic for HuskyMaps so that it’ll be able to handle requests from a web browser.īy the end of this homework, with a little extra work, you can even host your application as a publicly-available web app. Since you haven't implemented rasterizeMap, nothing is displayed in your browser. Instead, you should see the following message show in your IntelliJ Console: Since you haven’t implemented the backend, this data will never arrive. In a new web browser tab, navigate to the following address to connect to your running web server: Upon visiting this page, your web browser sends a request to the Java web server asking for the map image. The web server will continue running in IntelliJ: you can think of it as if there’s an infinite loop waiting until someone loads the map. What’s happening here is that your computer is now acting as a web server with your Java code ready to respond to web requests. ![]() INFO .ServerConnector - Started INFO .Server - Started If you’re using Windows, a popup might appear saying “Windows Defender Firewall has blocked some features of this app.” If this happens, you should allow access. INFO .log - Logging initialized INFO - = Spark has ignited. If everything is set up correctly, you should see some of the following diagnostic messages appear in your IntelliJ console: Recommended Verify that IntelliJ has loaded all dependencies properly by running the huskymaps.MapServer class. We recommend using the smaller dataset while you’re testing since it loads faster, but when you’re ready to try the larger one, simply change the constant OSM_GZ_RESOURCE_NAME in from / to /. By default, we use the smaller dataset in, which only includes streets around the U-Distrct.(I.e., path in your project should be huskymaps/resources/.) This file contains data about roads and locations in Seattle. Optionally download and place it the resources folder.You should end up with a bunch of files in the tiles directory, like huskymaps/resources/tiles/d#_x#_y#.jpg. Download tiles.zip and extract it into your project, under huskymaps/resources.Task Download and extract additional resources used in this assignment. If IntelliJ doesn’t properly recognize the new files or complains about failing to resolve classes or interfaces from previous assignments or external libraries, refresh Gradle manually through the Gradle tool window (on the right by default): Getting the Assignment Task Pull the skeleton repository to get the huskymaps assignment. Sometimes, these problems can be addressed by changing the source of the data (perhaps a job for a data scientist to wrangle), but often, we will need to interact with such messy data ourselves. In the real-world, big data is often noisy, incomplete, and biased. Wrangling slightly messy real-world datasets into useful data structures. As a result, you should expect to spend a decent amount of time familiarizing yourself with the provided code so that you know how to interface with it and what your code needs to do. This is very realistic experience, since in the real world, we usually don’t start developing projects completely from scratch. ![]() Unlike prior homeworks, this one starts with a gigantic code base that somebody else wrote. We’ve actually already built most of the components for HuskyMaps. Large-scale integration and closed-form solutions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |