Skip to content

Commit 6d809eb

Browse files
committed
Merge branch 'main' of github.com:httpdss/struct
2 parents 941971a + 1d47e62 commit 6d809eb

1 file changed

Lines changed: 218 additions & 68 deletions

File tree

contribs/generic-app.yaml

Lines changed: 218 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,100 @@
11
structure:
2-
- README.md:
2+
- .config/REMOVE_ME.md:
33
content: |
4-
# Generic App
4+
# .config Folder
5+
6+
It should local configuration related to setup on local machine.
7+
- .build/REMOVE_ME.md:
8+
content: |
9+
# .build Folder
10+
11+
This folder should contain all scripts related to build process (PowerShell, Docker compose…).
12+
- .dockerignore:
13+
content: |
14+
node_modules
15+
npm-debug.log
16+
- .editorconfig:
17+
content: |
18+
# Editor configuration
19+
root = true
520
6-
This is a generic app that can be used as a starting point for new projects.
21+
[*]
22+
indent_style = space
23+
indent_size = 2
24+
end_of_line = lf
25+
charset = utf-8
26+
trim_trailing_whitespace = true
27+
insert_final_newline = true
28+
- .env:
29+
content: |
30+
# Environment variables
31+
NODE_ENV=development
32+
PORT=3000
33+
- .env.example:
34+
content: |
35+
# Environment variables
36+
NODE_ENV=development
37+
PORT=3000
38+
- .gitattributes:
39+
content: |
40+
# Auto detect text files and perform LF normalization
41+
* text=auto
742
- .gitignore:
843
content: |
944
# Ignore files generated by the app
1045
/node_modules
1146
/dist
12-
- .tf/states/environments/dev/main.tf:
13-
content: "# Terraform configuration for the dev environment"
14-
- .tf/states/environments/dev/providers.tf:
47+
- .gitkeep:
48+
content: ""
49+
- .gitmodules:
1550
content: |
16-
provider "aws" {
17-
region = "${ aws_region }"
18-
}
19-
- .tf/states/environments/prod/main.tf:
20-
content: "# Terraform configuration for the prod environment"
21-
- .tf/states/environments/prod/providers.tf:
51+
# This file defines the submodules used by the repository
52+
# See https://git-scm.com/docs/gitmodules
53+
54+
# Submodule for the app
55+
[submodule "app"]
56+
path = app
57+
url =
58+
- .github/CODEOWNERS:
2259
content: |
23-
provider "aws" {
24-
region = "${ aws_region }"
25-
}
26-
- .tf/states/environments/stage/main.tf:
27-
content: "# Terraform configuration for the stage environment"
28-
- .tf/states/environments/stage/providers.tf:
60+
# This file defines the code owners for the repository
61+
# See https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
62+
63+
# The owners of the repository
64+
* @app-owner
65+
.tf/* @devops-team
66+
.github/* @devops-team
67+
CODEOWNERS @devops-team
68+
- .github/CODE_OF_CONDUCT.md:
2969
content: |
30-
provider "aws" {
31-
region = "${ aws_region }"
32-
}
33-
- .tf/states/environments/qa/main.tf:
34-
content: "# Terraform configuration for the qa environment"
35-
- .tf/states/environments/qa/providers.tf:
70+
# Code of Conduct
71+
72+
This project has adopted the [Contributor Covenant](https://www.contributor-covenant.org/), which is a code of conduct for open source projects. Please read the [full text](https://www.contributor-covenant.org/version/2/0/code_of_conduct/) so that you can understand what actions will and will not be tolerated.
73+
- .github/CONTRIBUTING.md:
3674
content: |
37-
provider "aws" {
38-
region = "${ aws_region }"
39-
}
40-
- .tf/states/init/main.tf:
41-
content: "# Terraform configuration for the init environment"
42-
- .tf/states/init/providers.tf:
75+
# Contributing
76+
77+
If you would like to contribute to this project, please follow the guidelines below.
78+
79+
## Issues
80+
81+
- If you find a bug in the project, please open an issue on the [Issues](
82+
- .github/FUNDING.yml:
4383
content: |
44-
provider "aws" {
45-
region = "${ aws_region }"
46-
}
47-
- .github/workflows/pre-commit.yaml:
84+
github: app-owner
85+
- .github/ISSUE_TEMPLATE/bug_report.md:
86+
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/ISSUE_TEMPLATE/bug_report.yml
87+
- .github/ISSUE_TEMPLATE/feature_request.md:
88+
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/ISSUE_TEMPLATE/feature_request.yml
89+
- .github/PULL_REQUEST_TEMPLATE.md:
90+
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/PULL_REQUEST_TEMPLATE.md
91+
- .github/SECURITY.md:
4892
content: |
49-
repos:
50-
- repo: https://github.com/pre-commit/pre-commit-hooks
51-
rev: v4.6.0
52-
hooks:
53-
- id: trailing-whitespace
54-
- id: end-of-file-fixer
55-
- id: check-yaml
93+
# Security Policy
94+
95+
If you discover a security vulnerability within this project, please report it to the app owner at <email>. All security vulnerabilities will be promptly addressed.
96+
- .github/dependabot.yml:
97+
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/dependabot.yml
5698
- .github/workflows/ci.yaml:
5799
content: |
58100
name: CI
@@ -81,16 +123,22 @@ structure:
81123
82124
- name: Deploy
83125
run: echo "Deploying to the cloud"
84-
- .github/CODEOWNERS:
126+
- .github/workflows/pre-commit.yaml:
85127
content: |
86-
# This file defines the code owners for the repository
87-
# See https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
128+
repos:
129+
- repo: https://github.com/pre-commit/pre-commit-hooks
130+
rev: v4.6.0
131+
hooks:
132+
- id: trailing-whitespace
133+
- id: end-of-file-fixer
134+
- id: check-yaml
135+
- .mailmap:
136+
content: |
137+
# This file maps authors and committers to their canonical names and email addresses
138+
# See https://git-scm.com/docs/git-check-mailmap
88139
89-
# The owners of the repository
90-
* @app-owner
91-
.tf/* @devops-team
92-
.github/* @devops-team
93-
CODEOWNERS @devops-team
140+
# Canonical name and email address for the app owner
141+
# app-owner <
94142
- .pre-commit-config.yaml:
95143
content: |
96144
repos:
@@ -100,14 +148,78 @@ structure:
100148
- id: trailing-whitespace
101149
- id: end-of-file-fixer
102150
- id: check-yaml
103-
- .github/ISSUE_TEMPLATE/bug_report.md:
104-
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/ISSUE_TEMPLATE/bug_report.yml
105-
- .github/ISSUE_TEMPLATE/feature_request.md:
106-
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/ISSUE_TEMPLATE/feature_request.yml
107-
- .github/PULL_REQUEST_TEMPLATE.md:
108-
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/PULL_REQUEST_TEMPLATE.md
109-
- .github/dependabot.yml:
110-
file: https://raw.githubusercontent.com/bitnami/charts/main/.github/dependabot.yml
151+
- .tf/states/environments/dev/main.tf:
152+
content: "# Terraform configuration for the dev environment"
153+
- .tf/states/environments/dev/providers.tf:
154+
content: |
155+
provider "aws" {
156+
region = "${ aws_region }"
157+
}
158+
- .tf/states/environments/prod/main.tf:
159+
content: "# Terraform configuration for the prod environment"
160+
- .tf/states/environments/prod/providers.tf:
161+
content: |
162+
provider "aws" {
163+
region = "${ aws_region }"
164+
}
165+
- .tf/states/environments/qa/main.tf:
166+
content: "# Terraform configuration for the qa environment"
167+
- .tf/states/environments/qa/providers.tf:
168+
content: |
169+
provider "aws" {
170+
region = "${ aws_region }"
171+
}
172+
- .tf/states/environments/stage/main.tf:
173+
content: "# Terraform configuration for the stage environment"
174+
- .tf/states/environments/stage/providers.tf:
175+
content: |
176+
provider "aws" {
177+
region = "${ aws_region }"
178+
}
179+
- .tf/states/init/main.tf:
180+
content: "# Terraform configuration for the init environment"
181+
- .tf/states/init/providers.tf:
182+
content: |
183+
provider "aws" {
184+
region = "${ aws_region }"
185+
}
186+
- ACKNOWLEDGEMENTS.md:
187+
content: |
188+
# Acknowledgements
189+
190+
This project would not have been possible without the help of the following people:
191+
192+
- app-owner <
193+
- AUTHORS.md:
194+
content: |
195+
# Authors
196+
197+
This project was created by app-owner <
198+
199+
## Contributors
200+
201+
- app-owner <
202+
- CHANGELOG.md:
203+
content: |
204+
# Changelog
205+
206+
All notable changes to this project will be documented in this file.
207+
208+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
209+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
210+
211+
## [Unreleased]
212+
213+
## [1.0.0] - 2021-01-01
214+
### Added
215+
- Initial release
216+
- CONTRIBUTORS.md:
217+
content: |
218+
# Contributors
219+
220+
Thanks to the following people who have contributed to this project:
221+
222+
- app-owner <
111223
- Dockerfile:
112224
content: |
113225
# Use an official Node.js runtime as the base image
@@ -124,10 +236,28 @@ structure:
124236
EXPOSE 3000
125237
# Run the application
126238
CMD ["npm", "start"]
127-
- .dockerignore:
239+
- LICENSE:
240+
file: https://raw.githubusercontent.com/httpdss/struct/main/LICENSE
241+
- README.md:
128242
content: |
129-
node_modules
130-
npm-debug.log
243+
# Generic App
244+
245+
## Introduction
246+
247+
This is a generic app that can be used as a template for new projects.
248+
249+
## Contribute
250+
251+
If you would like to contribute to this project, please follow the guidelines in the [CONTRIBUTING.md](.github/CONTRIBUTING.md) file.
252+
253+
## License
254+
255+
This project is licensed under the terms of the [Apache 2.0](LICENSE) license.
256+
- dep/REMOVE_ME.md:
257+
content: |
258+
# dep Folder
259+
260+
This is the directory where all your dependencies should be stored.
131261
- docker-compose.yml:
132262
content: |
133263
version: '3'
@@ -142,13 +272,33 @@ structure:
142272
- .:/app
143273
environment:
144274
- NODE_ENV=development
145-
- .env.example:
275+
- doc/REMOVE_ME.md:
146276
content: |
147-
# Environment variables
148-
NODE_ENV=development
149-
PORT=3000
150-
- .env:
277+
# doc Folder
278+
279+
The documentation folder
280+
- res/REMOVE_ME.md:
151281
content: |
152-
# Environment variables
153-
NODE_ENV=development
154-
PORT=3000
282+
# res Folder
283+
284+
For all static resources in your project. For example, images.
285+
- samples/REMOVE_ME.md:
286+
content: |
287+
# samples Folder
288+
289+
Providing “Hello World” & Co code that supports the documentation.
290+
- src/REMOVE_ME.md:
291+
content: |
292+
# src Folder
293+
294+
The source code folder! However, in languages that use headers (or if you have a framework for your application) don’t put those files in here.
295+
- test/REMOVE_ME.md:
296+
content: |
297+
# test Folder
298+
299+
Unit tests, integration tests… go here.
300+
- tools/REMOVE_ME.md:
301+
content: |
302+
# tools Folder
303+
304+
Convenience directory for your use. Should contain scripts to automate tasks in the project, for example, build scripts, rename scripts. Usually contains .sh, .cmd files for example.

0 commit comments

Comments
 (0)