{"id":25170284,"url":"https://github.com/nikolatechie/google-work-sample","last_synced_at":"2025-04-03T20:25:32.041Z","repository":{"id":158018457,"uuid":"381991966","full_name":"nikolatechie/Google-Work-Sample","owner":"nikolatechie","description":"Bright Network Internship Experience 2021","archived":false,"fork":false,"pushed_at":"2021-07-13T23:03:45.000Z","size":2371,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T08:40:29.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikolatechie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-01T10:14:57.000Z","updated_at":"2021-07-13T23:03:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a2d3b23-fbbe-4635-9247-850cfde1b210","html_url":"https://github.com/nikolatechie/Google-Work-Sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolatechie%2FGoogle-Work-Sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolatechie%2FGoogle-Work-Sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolatechie%2FGoogle-Work-Sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolatechie%2FGoogle-Work-Sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikolatechie","download_url":"https://codeload.github.com/nikolatechie/Google-Work-Sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247072469,"owners_count":20878893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T08:40:14.327Z","updated_at":"2025-04-03T20:25:32.032Z","avatar_url":"https://github.com/nikolatechie.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Youtube Challenge - Java\r\nThe Java Youtube Challenge uses Java 11, Junit 5.4 and Maven.\r\n\r\nNOTE: **Please do not edit videos.txt as it will cause tests to break. There is no need to modify this file to complete this challenge.**\r\n\r\n## Installing Java and Maven\r\n\r\nIf you need to install Java, follow [these](https://java.tutorials24x7.com/blog/how-to-install-java-11-on-windows) \r\ninstructions for Windows, and [these](https://docs.oracle.com/en/java/javase/11/install/installation-jdk-macos.html) instructions if you are on Mac.\r\nThe linux instructions are [here](https://docs.oracle.com/en/java/javase/11/install/installation-jdk-linux-platforms.html)\r\n\r\nIf you need to install Maven, follow the instructions in [this](https://www.baeldung.com/install-maven-on-windows-linux-mac) link.\r\n\u003e If you are on OSX Catalina, you might encounter issues while installing Maven, \r\n\u003e such as \"libjansi.jnilib” cannot be opened because the developer cannot be verified\".\r\n\u003e In the Finder on your Mac, locate the problematic item (in this case jnilib) \r\n\u003e and right-click -\u003e Open With -\u003e TextEdit. This will force your Mac to save\r\n\u003e whatever you opened as an exception. After performing this step, you can retry \r\n\u003e the installation, and it should succeed.\r\n\r\n\u003e On Linux, if you are encountering some problems installing Maven, try the following:\r\n\u003e 1. Replace `export MAVEN_OPTS=-Xms256m -Xmx512m` with `export MAVEN_OPTS='-Xms256m -Xmx512m'`\r\n\u003e (added some single quotes around the value) in `.bashrc`.\r\n\u003e 2. Make sure that `/usr/local/apache-maven/apache-maven-3.8.1/bin` exists.\r\n\u003e Following the instructions you may happen to create `/usr/local/apache-maven/apache-maven-3.8.1/apache-maven-3.8.1/bin` instead. If that is the case, you can fix the issue by running:\r\n\u003e $ mv /usr/local/apache-maven/apache-maven-3.8.1/apache-maven-3.8.1/* /usr/local/apache-maven/apache-maven-3.8.1/\r\n\u003e $ rmdir /usr/local/apache-maven/apache-maven-3.8.1/apache-maven-3.8.1\r\n\r\n## Setting up\r\nYou can write code in any editor you'd like. However, different editors have \r\ndifferent ways of dealing with Java code, so in case of doubt we recommend \r\nyou run the code and tests from the command line as shown below.\r\n\r\nThe below commands assume you are located in the java/ folder.\r\n\r\n## Running and Testing from the Commandline\r\nTo build:\r\n```shell script\r\nmvn compile\r\n```\r\n\r\nTo build \u0026 run:\r\n```shell script\r\nmvn exec:java\r\n```\r\nYou can close the app by typing `EXIT` as a command.\r\n\r\n#### Running all the tests\r\nTo run all the tests use the below code. You will have to compile your code before running \r\nthe tests.\r\n```shell script\r\nmvn compile\r\n```\r\n```shell script\r\nmvn test\r\n```\r\nIf you haven't changed anything in the code, it's expected to see error messages like this:\r\n```\r\n[ERROR] Tests run: 67, Failures: 63, Errors: 0, Skipped: 0\r\n```\r\n\r\nTo run tests for a single Part:\r\n```shell script\r\nmvn test -Dtest=Part1Test\r\nmvn test -Dtest=Part2Test\r\nmvn test -Dtest=Part3Test\r\nmvn test -Dtest=Part4Test\r\n```\r\n\r\n## Running and Testing from IntelliJ\r\nTo import the project as a Maven project, follow [the official IntelliJ instructions](https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start). Alternatively, you should be able to import the project at the java/ folder and IntelliJ will automatically recognize the project as a Maven project.\r\nMake sure that the project SDK is set to Java 11, [the official IntelliJ instructions on how to set it or download it](https://www.jetbrains.com/help/idea/sdk.html#change-project-sdk). You can use any vendor for JDK 11 if you don't have it already downloaded.\r\n\r\nTo run the Application, click on the little green play symbol next to `Run`.\r\nTo run the tests, click on the little green double arrow next to the tests class.\r\nTo run all tests, right-click on the root `java` folder and select `Run 'All Tests'`.\r\n\r\nHere is a screen capture showing all those initial steps:\r\n\r\n![Screen capture of the initial steps](running-and-testing-from-intellij.gif)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolatechie%2Fgoogle-work-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolatechie%2Fgoogle-work-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolatechie%2Fgoogle-work-sample/lists"}