Skip to content

nyuoss/23-fall-java-template-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-source-java-template

Measures of Success:

  • Programming Language: Java
  • Runtime Environment: JDK 17
  • Testing Framework: JUnit
  • Continuous Integration: GitHub Actions
  • Static Analysis: SonarLint
  • Code Formatting: Google Style Guide
  • Package Manager: Maven

How To Use This Repo

Download and Install

  1. IntelliJ IDEA Community Edition
  2. JDK 17 (use java -version to verify installation in terminal)
  3. Maven (use mvn -v to verify installation in terminal)

Clone and Open Project

  1. clone the project using git clone https://github.com/M2JT/open-source-java-template
  2. In IntelliJ, File -> Open java-template-project

Set up Static Analysis Tool

  1. In IntelliJ, Preferences -> Plugins, find SonarLint from the marketplace and install it install sonarlint

Set up Code Formatting

  1. In IntelliJ, Preferences -> Editor -> Code Style -> Java, click the settings icon next to Scheme and import the java-template-project/intellij-java-google-style.xml file import google code style import google code style

Run the Hello World Program

  1. In IntelliJ, go to src -> main -> java -> com.opensourcedev.javatemplateproject, and run DemoApplication
  2. Check out http://localhost:8080/hello in browser, you should be seeing Hello World! on the screen hello world example

Run the Test

  1. In IntelliJ, go to src -> test -> java -> com.opensourcedev.javatemplateproject, and run DemoTest test in idea
  2. Alternatively, you can run mvn test on the root directory in terminal test in terminal

.gitignore

Most are default options provided by GitHub that cover common patterns for ignoring files and directories in a Java project. Added .idea and .DS_Store to ignore IntelliJ IDEA-specific configuration files/directories and macOS-specific file.

About the License

The GNU General Public License (GPL) version 3.0 is a strong copyleft license that comes with certain requirements and restrictions. This license ensures that anyone who uses or modifies our code must also make their contributions available under the same terms, fostering a collaborative and transparent development environment. Therefore, choosing the GPL-3.0 license for our project is suitable as we want to promote open-source principles and ensure that our project and any derivative works remain open source.

About

Java Template Repository for CS-GY 9223

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%