|
| 1 | +structure: |
| 2 | + - .editorconfig: |
| 3 | + content: | |
| 4 | + # Editor configuration |
| 5 | + root = true |
| 6 | +
|
| 7 | + [*] |
| 8 | + indent_style = space |
| 9 | + indent_size = 2 |
| 10 | + end_of_line = lf |
| 11 | + charset = utf-8 |
| 12 | + trim_trailing_whitespace = true |
| 13 | + insert_final_newline = true |
| 14 | + - .env: |
| 15 | + content: | |
| 16 | + # Environment variables |
| 17 | + - .env.example: |
| 18 | + content: | |
| 19 | + # Environment variables |
| 20 | + - .gitignore: |
| 21 | + content: | |
| 22 | + # Ignore files generated by the app |
| 23 | + .env |
| 24 | + .venv |
| 25 | + - LICENSE: |
| 26 | + file: https://raw.githubusercontent.com/httpdss/struct/main/LICENSE |
| 27 | + - README.md: |
| 28 | + content: | |
| 29 | + # Generic App |
| 30 | +
|
| 31 | + ## Introduction |
| 32 | +
|
| 33 | + This is a generic app that can be used as a template for new projects. |
| 34 | +
|
| 35 | + ## Contribute |
| 36 | +
|
| 37 | + If you would like to contribute to this project, please follow the guidelines in the [CONTRIBUTING.md](.github/CONTRIBUTING.md) file. |
| 38 | +
|
| 39 | + ## License |
| 40 | +
|
| 41 | + This project is licensed under the terms of the [Apache 2.0](LICENSE) license. |
| 42 | + - pom.xml: |
| 43 | + content: | |
| 44 | + <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 45 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 46 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 47 | + <modelVersion>4.0.0</modelVersion> |
| 48 | + <groupId>com.example</groupId> |
| 49 | + <artifactId>project_name</artifactId> |
| 50 | + <version>0.1.0</version> |
| 51 | + <packaging>jar</packaging> |
| 52 | + <name>project_name</name> |
| 53 | + <description>A new Java project</description> |
| 54 | + <properties> |
| 55 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 56 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 57 | + </properties> |
| 58 | + </project> |
| 59 | + - src/main/java/com/example/App.java: |
| 60 | + content: | |
| 61 | + package com.example; |
| 62 | +
|
| 63 | + public class App { |
| 64 | + public static void main(String[] args) { |
| 65 | + System.out.println("Hello, World!"); |
| 66 | + } |
| 67 | + } |
| 68 | + - src/main/resources/REMOVE_ME.md: |
| 69 | + content: | |
| 70 | + # Resources |
| 71 | +
|
| 72 | + Resource files like configuration files |
| 73 | + - src/test/java/com/example/AppTest.java: |
| 74 | + content: | |
| 75 | + package com.example; |
| 76 | +
|
| 77 | + import org.junit.Test; |
| 78 | + import static org.junit.Assert.*; |
| 79 | +
|
| 80 | + public class AppTest { |
| 81 | + @Test |
| 82 | + public void testApp() { |
| 83 | + assertTrue(true); |
| 84 | + } |
| 85 | + } |
0 commit comments