Skip to content

Commit 370bf62

Browse files
committed
update project
1 parent 2a63d5d commit 370bf62

11 files changed

+7875
-14251
lines changed
File renamed without changes.

CODE_OF_CONDUCT.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Code of Conduct for fifocode
2+
3+
## Introduction
4+
5+
We, the contributors and maintainers of the fifocode , pledge to foster an open and welcoming environment. We aim to make participation in our project a positive and inclusive experience for everyone, regardless of background or identity.
6+
7+
This Code of Conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
8+
9+
We invite all contributors, users, and other participants to help us realize a safe and positive community experience.
10+
11+
## Our Standards
12+
13+
Examples of behavior that contributes to creating a positive environment include:
14+
15+
- **Respectful and Inclusive Language:** Be respectful of differing opinions, experiences, and viewpoints. Use inclusive language and avoid offensive comments or personal attacks.
16+
17+
- **Collaboration:** Work collaboratively with others, embracing constructive criticism and differing perspectives.
18+
19+
- **Empathy:** Be empathetic towards other community members, understanding and valuing diverse experiences.
20+
21+
- **Open-Mindedness:** Be open to learning from others and willing to adapt and grow.
22+
23+
Examples of unacceptable behavior include:
24+
25+
- **Harassment:** Any form of harassment, discrimination, or unwelcome conduct based on factors such as race, gender, sexual orientation, disability, or any other protected status.
26+
27+
- **Intimidation:** Deliberate intimidation, stalking, or following, online or offline.
28+
29+
- **Unsolicited Advice:** Unwelcome advice or criticism, especially if it's repetitive or not constructive.
30+
31+
- **Disruptive Behavior:** Any disruptive behavior that interferes with a positive and inclusive community experience.
32+
33+
## Responsibilities
34+
35+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct. Project maintainers have the final say on all matters.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [[email protected]]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality regarding the reporter of an incident.
40+
41+
Project maintainers who do not follow or enforce the Code of Conduct may be temporarily or permanently removed from the project team.
42+
43+
## Attribution
44+
45+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
46+
47+
## Conclusion
48+
49+
By participating in our project, you agree to uphold this Code of Conduct. We expect all contributors to adhere to these guidelines in all project spaces, including GitHub repositories, social media, and community events.
50+
51+
Thank you for helping make this project a welcoming, positive, and inclusive space for everyone.

CONTRIBUTING.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Contributing to fifocode
2+
3+
Welcome to fifocode! We appreciate your interest in contributing. Whether you're reporting bugs, suggesting improvements, or contributing code, your collaboration makes this project better for everyone.
4+
5+
Before you start contributing, please take a moment to review this document for guidelines on how to contribute to this project.
6+
7+
## Code of Conduct
8+
9+
Please note that this project adheres to a [Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project, you agree to abide by its terms.
10+
11+
## How to Contribute
12+
13+
### Reporting Bugs
14+
15+
If you find a bug, please help us by providing a detailed bug report. Use the [GitHub Issues](https://github.com/fifocode/nodejs-backend-architecture-typescript/issues) section to report bugs. Ensure your bug report includes:
16+
17+
- A clear and descriptive title.
18+
- A detailed description of the bug, including steps to reproduce.
19+
- Your operating system and relevant environment information.
20+
21+
### Suggesting Enhancements
22+
23+
To suggest enhancements or new features, please use the [GitHub Issues](https://github.com/fifocode/nodejs-backend-architecture-typescript/issues) section. Provide a clear and concise description of your suggestion, including any relevant use cases or scenarios.
24+
25+
### Pull Requests
26+
27+
1. Fork the repository and create your branch from `main`.
28+
29+
```bash
30+
git clone https://github.com/fifocode/nodejs-backend-architecture-typescript.git --recursive
31+
git checkout -b your-feature-branch
32+
```
33+
34+
2. Make your changes and ensure that your code adheres to the project's coding standards.
35+
36+
3. Test your changes thoroughly.
37+
38+
4. Commit your changes with a clear and concise commit message.
39+
40+
```bash
41+
git add .
42+
git commit -m "Add your concise commit message here"
43+
```
44+
45+
5. Push to your forked repository.
46+
47+
```bash
48+
git push origin your-feature-branch
49+
```
50+
51+
6. Open a pull request with a detailed description of your changes.
52+
53+
### Coding Standards
54+
55+
Ensure that your code adheres to the coding standards used in this project. If there are specific guidelines, mention them here.
56+
57+
## License
58+
59+
By contributing to this project, you agree that your contributions will be licensed under the [project's license](LICENSE.md).
60+
61+
Thank you for contributing to fifocode!

addons/init-project.ts

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { existsSync, readFileSync, writeFileSync } from 'fs';
2+
import { join } from 'path';
3+
4+
const publicPem = join(__dirname, '../keys/public.pem');
5+
const publicPemExample = join(__dirname, '../keys/public.pem.example');
6+
7+
const privatePem = join(__dirname, '../keys/private.pem');
8+
const privatePemExample = join(__dirname, '../keys/private.pem.example');
9+
10+
const env = join(__dirname, '../.env');
11+
const envExample = join(__dirname, '../.env.example');
12+
13+
const envTest = join(__dirname, '../.env.test');
14+
const envTestExample = join(__dirname, '../.env.test.example');
15+
16+
if (!existsSync(publicPem)) {
17+
writeFileSync(publicPem, new Uint8Array(readFileSync(publicPemExample)));
18+
console.log('keys/public.pem created')
19+
}
20+
21+
if (!existsSync(privatePem)) {
22+
writeFileSync(privatePem, new Uint8Array(readFileSync(privatePemExample)));
23+
console.log('keys/private.pem created');
24+
}
25+
26+
if (!existsSync(env)) {
27+
writeFileSync(env, new Uint8Array(readFileSync(envExample)));
28+
console.log('.env created');
29+
}
30+
31+
if (!existsSync(envTest)) {
32+
writeFileSync(envTest, new Uint8Array(readFileSync(envTestExample)));
33+
console.log('.env.test created');
34+
}

keys/private.pem.example

+49-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
11
-----BEGIN RSA PRIVATE KEY-----
2-
MIIEogIBAAKCAQEAsohZFGYHV3tvJH769v1Vd++TBUuMl/q1zD2oNKOJmdiyXefU
3-
wC3o8GryBy8ClYtgFGxrs8OrldJ4q+ctkAE9oS9FyxLd5NWz2RLmk79DGib2SLES
4-
xUt/3SiMWKh0ks9jr8S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AxkwGT84VyaqwkRsqVCwdTlNJjN3sOQ
43+
fwZqFsO6Hp+rDbeiwE7bdEBIYSxlat2TDtzef3vnymznIuZIVmyIEpOT5q2/JI7z
44+
ji64agZDlV+mi9dIsvw+ODj+2xawqKHPzoR/nE2Y2+qUr+/08YyZunD3OrUOhy0T
45+
XHd9zcxi4mIK6MBtYR7I/bwn4PX2gGsCggEAC5JV6WYi+BTJg22iWCqyTcpH/+g3
46+
RUoR9qcwq+yYheZ+b3+hfsZJMW7KjaiSw9rKDP3JY+VGheiHS2N1Y7kgZSGQJu7M
47+
AI9fjkVoW9J/VUEFtXHXwzBjNvWM7eq3blUUnYmJmtQE/1HAWdoKUxmXjwBtR9H3
48+
iaIMAyybpzbAUHgVEYdWTMVsk4fgoxIyBb9SVvqoqYMMp4M3YrjfmDNUIZ14PeQ8
49+
T0BPTqkMf4U5rIUZX0GEis/ZCHT2VsaPowxndqwcAz9OZz5ZRV8R0NeAdWGMjv4E
50+
j3ByiJjh0t6SXlWURMIT9K+Tmv8xqt+BLT7f0wP5/Q1qLi3EwsbSg1rMZA==
2751
-----END RSA PRIVATE KEY-----

keys/public.pem.example

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
-----BEGIN PUBLIC KEY-----
2-
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsohZFGYHV3tvJH769v1V
3-
d++TBUuMl/q1zD2oNKOJmdiyXefUwC3o8GryBy8ClYtgFGxrs8OrldJ4q+ctkAE9
4-
oS9FyxLd5NWz2RLmk79DGib2SLESxUt/3SiMWKh0ks9jr8SZzwRopnuJzc/JWsY6
5-
7ac4bLMx39QrfrWWCUArP6rUstMWOYXfl8nh+SPLzmbtbRggKTK/5beJKLLd78lW
6-
ulF5lpB6H4+eHY6/0gTT4J+TSACSL5iA24tGwB/IqeJrUkyo3X7LSSRj6yn1S1lY
7-
7+TW4jjA8+oSjXgjuhpQhd8ha35HNr+triNVfm0aSCQeScga3z88J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