diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b84d06e..7c900eb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,71 +1,195 @@ -# How to contribute to ExpressoTS + +
+ Table of Contents +
    +
  1. Contributing Guidelines
  2. +
  3. Content + + + + + + + + + + + + + +
  4. +
+
-As a contributor to ExpressoTS, we welcome and encourage your involvement in making it even better than its current state. To help ensure a smooth and effective collaboration, we kindly request that you adhere to the following guidelines: + -- [Do you have a question?](#question) -- [Report an issue or a bug](#issue-bug) -- [Request a feature](#feature) -- [Coding Guidelines](#coding) -- [Submitting your Pull Request](#pull-request) +# Contributing Guidelines -## Do you have a question? +Pull requests, bug reports, and all other forms of contribution are welcomed and highly encouraged! -At this early stage of the project, we are setup to provide support through our [Discord Channel](https://discord.com/invite/PyPJfGK). We have a very active community there, that will be happy to help you. Post your questions in the channel called **HELP EXPRESSO TS** and forum called **help**. +> **This guide serves to set clear expectations for everyone involved with the project so that we can improve it together while also creating a welcoming space for everyone to participate. Following these guidelines will help ensure a positive experience for contributors and maintainers.** -The **GitHub** issues is a channel dedicated to bug reports and features requests only. Please do not submit support requests there, to avoid cluttering the issues list. +# Content -## Report an issue or a bug +- **Code of Conduct**: Please review our [Code of Conduct](https://github.com/expressots/expresso-site-doc/blob/main/CODE_OF_CONDUCT.md). It is in effect at all times. We expect it to be honored by everyone who contributes to this project. Acting like an asshole will not be tolerated. -If you find a bug in the source code, you can help us by submitting an issue in the **[Issue reporting channel](https://github.com/expressots/expressots/issues)**. Event better, you can submit a **[Pull Request](https://github.com/expressots/expressots/pulls)** with a fix. +- **Asking for Support**: See our [Support Guide](https://github.com/expressots/expresso-site-doc/blob/main/SUPPORT.md). In short, GitHub issues are not the appropriate place to debug your specific project, but should be reserved for filing bugs and feature requests. -## Request a feature +- **Opening an Issue**: Before [creating an issue](https://help.github.com/en/github/managing-your-work-on-github/creating-an-issue), check if you are using the latest version of the project. If you are not up-to-date, see if updating fixes your issue first. -You can request a new feature by submitting an issue in the **[Issue reporting channel](https://github.com/expressots/expressots/issues)**. +- **Reporting Security Issues**: Review our [Security Policy](https://github.com/expressots/expresso-site-doc/blob/main/SECURITY.md). **Do not** file a public issue for security vulnerabilities. -If you would like to implement the new feature, please submit an issue describing your proposal first. Thi will allow us to provide feedback, ensure that the feature is aligned with the project goals and that you are not duplicating work. +- **Bug Reports and Other Issues**: A great way to contribute to the project is to send a detailed issue when you encounter a problem. We always appreciate a well-written, thorough bug report. In short, since you are most likely a developer, **provide a ticket that you would like to receive**. -## Coding Guidelines +- **Review the documentation and [Support Guide](https://github.com/jessesquires/.github/blob/main/SUPPORT.md)** before opening a new issue. -In development ... +- **Do not open a duplicate issue!** Search through existing issues to see if your issue has previously been reported. If your issue exists, comment with any additional information you have. You may simply note "I have this problem too", which helps prioritize the most common problems and requests. -## Submitting your Pull Request +- **Prefer using [reactions](https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)**, not comments, if you simply want to "+1" an existing issue. -### Description +- **Fully complete the provided issue template.** The bug report template requests all the information we need to quickly and efficiently address your issue. Be clear, concise, and descriptive. Provide as much information as you can, including steps to reproduce, stack traces, compiler errors, library versions, OS versions, and screenshots (if applicable). -Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. +- **Use [GitHub-flavored Markdown](https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax).** Especially put code blocks and console outputs in backticks (```). This improves readability. -Fixes # (issue) +- **Feature Requests**: Feature requests are welcome! While we will consider all requests, we cannot guarantee your request will be accepted. Your idea may be great, but also out-of-scope for the project. If accepted, we cannot make any commitments regarding the timeline for implementation and release. However, you are welcome to submit a pull request to help! -### Type of change +- **Do not open a duplicate feature request**: Search for existing feature requests first. If you find your feature (or one very similar) previously requested, comment on that issue. -Please delete options that are not relevant. +- **Fully complete the provided issue template**: The feature request template asks for all necessary information for us to begin a productive conversation. Be precise about the proposed outcome of the feature and how it relates to existing features. Include implementation details if possible. -- [ ] Bug fix (non-breaking change which fixes an issue) -- [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) -- [ ] This change requires a documentation update +- **Triaging Issues**: You can triage issues which may include reproducing bug reports or asking for additional information, such as version numbers or reproduction instructions. Any help you can provide to quickly resolve an issue is very much appreciated! -### How Has This Been Tested? +## Submitting Pull Requests -Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration +We **love** pull requests! Before forking the repo and creating a pull request for non-trivial changes, it is usually best to first open an issue to discuss the changes, or discuss your intended approach for solving the problem in the comments for an existing issue. -- [ ] Test A -- [ ] Test B +_Note: All contributions will be licensed under the project's license._ -**Test Configuration**: +- **Smaller is better.** Submit **one** pull request per bug fix or feature. A pull request should contain isolated changes pertaining to a single bug fix or feature implementation. **Do not** refactor or reformat code that is unrelated to your change. It is better to **submit many small pull requests** rather than a single large one. Enormous pull requests will take enormous amounts of time to review, or may be rejected altogether. -* Firmware version: -* Hardware: -* Toolchain: -* SDK: +- **Coordinate bigger changes.** For large and non-trivial changes, open an issue to discuss a strategy with the maintainers. Otherwise, you risk doing a lot of work for nothing! -### Checklist: +- **Prioritize understanding over cleverness.** Write code clearly and concisely. Remember that source code usually gets written once and read often. Ensure the code is clear to the reader. The purpose and logic should be obvious to a reasonably skilled developer, otherwise you should add a comment that explains it. -- [ ] My code follows the style guidelines of this project -- [ ] I have performed a self-review of my own code -- [ ] I have commented my code, particularly in hard-to-understand areas -- [ ] I have made corresponding changes to the documentation -- [ ] My changes generate no new warnings -- [ ] I have added tests that prove my fix is effective or that my feature works -- [ ] New and existing unit tests pass locally with my changes -- [ ] Any dependent changes have been merged and published in downstream modules +- **Follow existing coding style and conventions.** Keep your code consistent with the style, formatting, and conventions in the rest of the code base. When possible, these will be enforced with a linter. Consistency makes it easier to review and modify in the future. + +- **Include test coverage.** Add unit tests or UI tests when possible. Follow existing patterns for implementing tests. + +- **Update the example project** if one exists to exercise any new functionality you have added. + +- **Add documentation.** Document your changes with code doc comments or in existing guides. + +- **Update the CHANGELOG** for all enhancements and bug fixes. Include the corresponding issue number if one exists, and your GitHub username. (example: "- Fixed crash in profile view. #123 @user") + +- **Use the repo's default branch.** Branch from and submit your pull request to the repo's default branch. Usually this is `main`, but it could be `dev`, `develop`, or `master`. + +- **[Resolve any merge conflicts](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-on-github)** that occur. + +- **Promptly address any CI failures**. If your pull request fails to build or pass tests, please push another commit to fix it. + +- When writing comments, use properly constructed sentences, including punctuation. + +- Use spaces, not tabs. + +## Writing Commit Messages + +Please [write a great commit message](https://chris.beams.io/posts/git-commit/). + +1. Separate subject from body with a blank line +1. Limit the subject line to 50 characters +1. Capitalize the subject line +1. Do not end the subject line with a period +1. Use the imperative mood in the subject line (example: "Fix networking issue") +1. Wrap the body at about 72 characters +1. Use the body to explain **why**, _not what and how_ (the code shows that!) +1. If applicable, prefix the title with the relevant component name. (examples: "[Docs] Fix typo", "[Profile] Fix missing avatar") + +``` +[TAG] Short summary of changes in 50 chars or less + +Add a more detailed explanation here, if necessary. Possibly give +some background about the issue being fixed, etc. The body of the +commit message can be several paragraphs. Further paragraphs come +after blank lines and please do proper word-wrap. + +Wrap it to about 72 characters or so. In some contexts, +the first line is treated as the subject of the commit and the +rest of the text as the body. The blank line separating the summary +from the body is critical (unless you omit the body entirely); +various tools like `log`, `shortlog` and `rebase` can get confused +if you run the two together. + +Explain the problem that this commit is solving. Focus on why you +are making this change as opposed to how or what. The code explains +how or what. Reviewers and your future self can read the patch, +but might not understand why a particular solution was implemented. +Are there side effects or other unintuitive consequences of this +change? Here's the place to explain them. + + - Bullet points are okay, too + + - A hyphen or asterisk should be used for the bullet, preceded + by a single space, with blank lines in between + +Note the fixed or relevant GitHub issues at the end: + +Resolves: #123 +See also: #456, #789 +``` + +## Code Review + +- **Review the code, not the author.** Look for and suggest improvements without disparaging or insulting the author. Provide actionable feedback and explain your reasoning. + +- **You are not your code.** When your code is critiqued, questioned, or constructively criticized, remember that you are not your code. Do not take code review personally. + +- **Always do your best.** No one writes bugs on purpose. Do your best, and learn from your mistakes. + +- Kindly note any violations to the guidelines specified in this document. + +## Coding Style + +Consistency is the most important. Following the existing style, formatting, and naming conventions of the file you are modifying and of the overall project. Failure to do so will result in a prolonged review process that has to focus on updating the superficial aspects of your code, rather than improving its functionality and performance. + +For example, if all private properties are prefixed with an underscore `_`, then new ones you add should be prefixed in the same way. Or, if methods are named using camelcase, like `thisIsMyNewMethod`, then do not diverge from that by writing `this_is_my_new_method`. You get the idea. If in doubt, please ask or search the codebase for something similar. + +When possible, style and format will be enforced with a linter. + +For more information on Coding Style [click here](https://github.com/rsaz/TypescriptCodingGuidelines) + +## :medal_sports: Certificate of Origin + +_Developer's Certificate of Origin 1.1_ + +By making a contribution to this project, I certify that: + +> 1. The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or +> 1. The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or +> 1. The contribution was provided directly to me by some other person who certified (1), (2) or (3) and I have not modified it. +> 1. I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. + +## You are Here + +If you are reading this, bravo dear user and (hopefully) contributor for making it this far! You are awesome. :100: + +To confirm that you have read this guide and are following it as best as possible, **include this emoji at the top** of your issue or pull request: :black_heart: `:black_heart:` diff --git a/CONTRIBUTING_HOWTO.md b/CONTRIBUTING_HOWTO.md new file mode 100644 index 0000000..3af7378 --- /dev/null +++ b/CONTRIBUTING_HOWTO.md @@ -0,0 +1,87 @@ +# How to contribute to ExpressoTS + +1. [Fork](https://github.com/expressots/expresso-site-doc/fork) the repo and create your branch from main. +2. If you've added code that should be tested, add tests. +3. If you've changed APIs, update the documentation. +4. Ensure the test suite passes. +5. Make sure your code lints. +6. Issue that pull request! + +## Installation Guide + +We are currently using Docusaurus version 2.4.1. For more information about Docusaurus, please visit the [Docusaurus website](https://docusaurus.io/docs) + +After forking the repo, you can install the dependencies with the following command: + +```bash +npm install +``` + +And run the project in development mode with: + +```bash +npm start +``` + +## Report an issue or a bug + +If you find a bug in the source code, you can help us by submitting an issue in the **[Issue reporting channel](https://github.com/expressots/expressots/issues)**. Event better, you can submit a **[Pull Request](https://github.com/expressots/expressots/pulls)** with a fix. + +## Request a feature + +You can request a new feature by submitting an issue in the **[Issue reporting channel](https://github.com/expressots/expressots/issues)**. + +If you would like to implement the new feature, please submit an issue describing your proposal first. Thi will allow us to provide feedback, ensure that the feature is aligned with the project goals and that you are not duplicating work. + +## Issues and Feature Requests Labels + +- **[doc fix]**: A documentation fix +- **[doc update]**: A documentation update +- **[feature]**: A new feature +- **[new doc]**: A new documentation +- **[translation]**: A new translation + +## Coding Guidelines + +Here are the coding guidelines we use for ExpressoTS: [Typescript Coding Guidelines](https://github.com/rsaz/TypescriptCodingGuidelines/blob/main/TypeScriptCodingGuidelines.md) + +## Submitting your Pull Request + +### Description + +Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. + +Fixes # (issue) + +### Type of change + +Please delete options that are not relevant. + +- [ ] Documentation fix +- [ ] Documentation update +- [ ] New Feature +- [ ] Translation:: New language + +### How Has This Been Tested? + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration if applicable. + +- [ ] Test A +- [ ] Test B + +**Test Configuration**: + +- OS: +- Browser: +- Documentation language:: English + +### Checklist: + +- [ ] My code follows the style guidelines of this project +- [ ] I have performed a self-review of my own code +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] New and existing unit tests pass locally with my changes +- [ ] Any dependent changes have been merged and published in downstream modules diff --git a/README.md b/README.md index 5a20a66..864f4de 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,110 @@ -

- Expresso TS Logo -

+ -# Expresso TS + -A Typescript + [Node.js]("https://nodejs.org/en/") lightweight framework for quick building scalable, easy to read and maintain, server-side applications 🚀 +[![Contributors][contributors-shield]][contributors-url] +[![Forks][forks-shield]][forks-url] +[![Stargazers][stars-shield]][stars-url] +[![Issues][issues-shield]][issues-url] +[![MIT License][license-shield]][license-url] +[![LinkedIn][linkedin-shield]][linkedin-url] -#

Expresso TS CLI Tool

+ +
+
+ + Logo + -## Description +

ExpressoTS Framework

-The ExpressoTS CLI is a command-line interface tool that helps you to create `ExpressoTS` projects, develop, and maintain your applications and resources created. It assists in multiple ways, including creating the project as well as scaffolding services offered by the application such as use cases, controllers, providers and more. +

+ Everything you need to know to build applications with ExpressoTS +
+ Explore the docs » +
+
+ Let's discuss + · + Report Bug + · + Request Feature +

+
-## Installation 💻 + +
+ Table of Contents +
    +
  1. About The Project
  2. +
  3. Getting Started
  4. +
  5. Contributing
  6. +
  7. Support the project
  8. +
  9. License
  10. +
+
-```bash -npm i -g @expressots/cli -``` + -## Usage +# About The Project -Learn more in the [official documentation](https://expresso-ts.com/docs/category/cli) +ExpressoTS is a [Typescript](https://www.typescriptlang.org/) + [Node.js](https://nodejs.org/en/) lightweight framework for quick building scalable, easy to read and maintain, server-side applications 🐎 -## Stay in touch +## Getting Started -- Author: Daniel Boll | Richard Zampieri -- Website: [https://expresso-ts.com](https://expresso-ts.com) -- Twitch: [@expressots Development](https://www.twitch.tv/richardzampieri) +- Here is our [Site](https://expresso-ts.com/) +- You can find our [Documentation here](https://doc.expresso-ts.com/) +- Checkout our [First Steps documentation](https://doc.expresso-ts.com/docs/overview/first-steps) +- Our [CLI Documentation](https://doc.expresso-ts.com/docs/cli/overview) + +## Contributing + +Welcome to the ExpressoTS community, a place bustling with innovative minds just like yours. We're absolutely thrilled to have you here! +ExpressoTS is more than just a TypeScript framework; it's a collective effort by developers who are passionate about creating a more efficient, secure, and robust web ecosystem. We firmly believe that the best ideas come from a diversity of perspectives, backgrounds, and skills. + +Why Contribute to Documentation? + +- **Share Knowledge**: If you've figured out something cool, why keep it to yourself? +- **Build Your Portfolio**: Contributing to an open-source project like ExpressoTS is a great way to showcase your skills. +- **Join a Network**: Get to know a community of like-minded developers. +- **Improve the Product**: Help us fill in the gaps, correct errors, or make complex topics easier to understand. + +Ready to contribute? + +- [Contributing Guidelines](https://github.com/expressots/expressots/blob/main/CONTRIBUTING.md) +- [How to Contribute](https://github.com/expressots/expressots/blob/main/CONTRIBUTING_HOWTO.md) +- [Coding Guidelines](https://github.com/rsaz/TypescriptCodingGuidelines) + +## Support the project + +ExpressoTS is an independent open source project with ongoing development made possible thanks to your support. If you'd like to help, please consider: + +- Become a **[sponsor on GitHub](https://github.com/sponsors/expressots)** +- Follow the **[organization](https://github.com/expressots)** on GitHub and Star ⭐ the project +- Subscribe to the Twitch channel: **[Richard Zampieri](https://www.twitch.tv/richardzampieri)** +- Join our **[Discord](https://discord.com/invite/PyPJfGK)** +- Contribute submitting **[issues and pull requests](https://github.com/expressots/expressots/issues)** +- Share the project with your friends and colleagues ## License -ExpressoTS is [MIT Licensed](https://github.com/expressots/expressots-cli/blob/main/LICENSE.md) +Distributed under the MIT License. See [`LICENSE.txt`](https://github.com/expressots/expressots/blob/main/LICENSE) for more information. + +

(back to top)

+ + + + +[contributors-shield]: https://img.shields.io/github/contributors/expressots/expressots-cli?style=for-the-badge +[contributors-url]: https://github.com/expressots/expressots-cli/graphs/contributors +[forks-shield]: https://img.shields.io/github/forks/expressots/expressots-cli?style=for-the-badge +[forks-url]: https://github.com/expressots/expressots-cli/forks +[stars-shield]: https://img.shields.io/github/stars/expressots/expressots-cli?style=for-the-badge +[stars-url]: https://github.com/expressots/expressots-cli/stargazers +[issues-shield]: https://img.shields.io/github/issues/expressots/expressots-cli?style=for-the-badge +[issues-url]: https://github.com/expressots/expressots-cli/issues +[license-shield]: https://img.shields.io/github/license/expressots/expressots-cli?style=for-the-badge +[license-url]: https://github.com/expressots/expressots-cli/blob/main/LICENSE +[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 +[linkedin-url]: https://www.linkedin.com/company/expresso-ts/ +[product-screenshot]: images/screenshot.png diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 0000000..19613a9 --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,31 @@ +# Support and Help + +Need help getting started or using a project? Here's how. + +## How to get help + +Generally, we do use GitHub and Discord as a support forum. For any usage questions that are not specific to the project itself, please ask on [Discord](https://discord.com/invite/PyPJfGK) instead. By doing so, you are more likely to quickly solve your problem, and you will allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others. + +Please seek support in the following ways: + +1. :book: **Read the documentation and other guides** for the project to see if you can figure it out on your own. These should be located in the [Official Documentation](https://doc.expresso-ts.com/) directory. If there is an example project, explore that to learn how it works to see if you can answer your question. + +1. :bulb: **Search for answers and ask questions on [Discord](https://discord.com/invite/PyPJfGK) or the [Discussion Panel on GitHub](https://github.com/expressots/expressots/discussions).** This is the most appropriate place for debugging issues specific to your use of the project, or figuring out how to use the project in a specific way. + +1. :memo: As a **last resort**, you may open an issue on GitHub to ask for help. However, please clearly explain what you are trying to do, and list what you have already attempted to solve the problem. Provide code samples, but **do not** attach your entire project for someone else to debug. Review our [contributing guidelines](https://github.com/expressots/expressots/blob/main/CONTRIBUTING.md). + +## What NOT to do + +Please **do not** do any the following: + +1. :x: Do not reach out to the author or contributor on Twitter (or other social media) by tweeting or sending a direct message. + +1. :x: Do not email the author or contributor. + +1. :x: Do not open duplicate issues or litter an existing issue with +1's. + +These are not appropriate avenues for seeking help or support with an open-source project. Please follow the guidelines in the previous section. Public questions get public answers, which benefits everyone in the community. ✌️ + +## Customer Support + +I do not provide any sort of "customer support" for open-source projects. However, I am available for hire. If you need help with a project, drop me a message here at [@expresso-ts.com](mailto:richard.zampieri@expresso-ts.com)