From 1fbc3a0a3555608f001797d41bfd1f87305c95db Mon Sep 17 00:00:00 2001 From: Reeya Gupta <56750374+Reeya123@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:47:54 -0400 Subject: [PATCH] Contribution doc and related documentations. (#434) * Create Contribute doc * Create Contribute doc * Update CONTRIBUTING.md * Update code_of_conduct.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update CONTRIBUTING.md * Update * Added contribution documents * Update contribution doc --- .github/PULL_REQUEST_TEMPLATE.md | 0 CONTRIBUTING.md | 118 +++++++++++++++++++++++++ README.md | 2 +- docs/README.md | 0 docs/contributing/code_of_conduct.md | 64 ++++++++++++++ docs/contributing/development_setup.md | 26 ++++++ docs/contributing/index.md | 0 docs/contributing/license.md | 0 docs/contributing/style_guides.md | 1 + docs/contributing/testing.md | 0 10 files changed, 210 insertions(+), 1 deletion(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 CONTRIBUTING.md create mode 100644 docs/README.md create mode 100644 docs/contributing/code_of_conduct.md create mode 100644 docs/contributing/development_setup.md create mode 100644 docs/contributing/index.md create mode 100644 docs/contributing/license.md create mode 100644 docs/contributing/style_guides.md create mode 100644 docs/contributing/testing.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..e69de29b diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..964e7dc9 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,118 @@ +# Contributing to the Biocompute Project + +Thank you for considering contributing to the Biocompute project! This document outlines the process to help you contribute. + +All types of contributions are encouraged and valued. See the Table of Contents for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉 + +> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about: +> - Star the project +> - Tweet about it +> - Refer this project in your project's readme +> - Mention the project at local meetups and tell your friends/colleagues + +## Table of Contents + +- [Code of Conduct](./docs/contributing/code_of_conduct.md) +- [How to Contribute](#how-to-contribute) + - [Reporting Bugs](#reporting-bugs) + - [Suggesting Enhancements](#suggesting-enhancements) + - [Submitting Code Changes](#submitting-code-changes) +- [Development Setup](#development-setup) +- [Style Guides](#style-guides) + - [Code Style](#code-style) + - [Commit Messages](#commit-messages) +- [Testing](#testing) +- [Documentation](#documentation) +- [License](#license) + +## Code of Conduct + +This project adheres to the Contributor Covenant [Code of Conduct](./docs/contributing/code_of_conduct.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to the [Team](mailto:hadley_king@email.gwu.edu ). + +## I Have a Question + +> If you want to ask a question, we assume that you have read the available [Documentation](/README.md). + +Before you ask a question, it is best to search for existing [Issues](https://github.com/biocompute-objects/portal_userdb/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first. + +If you then still feel the need to ask a question and need clarification, we recommend the following: + +- Open an [Issue](https://github.com/biocompute-objects/portal_userdb/issues/new/choose). +- Provide as much context as you can about what you're running into. +- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant. + +We will then take care of the issue as soon as possible. +## How to Contribute + +### Reporting Bugs + +#### Before Submitting a Bug Report +A good bug report shouldn’t leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible. +If you find a bug, please create an issue on GitHub with the following information: + +- A clear and descriptive title. +- Steps to reproduce the issue. +- Expected and actual behavior. +- Screenshots or logs, if applicable. +- Any other information that might be helpful. + +### Suggesting Enhancements + +This section guides you through submitting an enhancement suggestion for Biocompute project, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions. + + +#### Before Submitting an Enhancement + +- Make sure that you are using the latest version. +- Read the [documentation](/README.md) carefully and find out if the functionality is already covered, maybe by an individual configuration. +- Perform a [search](https://github.com/biocompute-objects/portal_userdb/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. +- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library. + + +#### How Do I Submit a Good Enhancement Suggestion? + +Enhancement suggestions are tracked as [GitHub issues](https://github.com/biocompute-objects/portal_userdb/issues).Provide the following: + +- Use a clear and descriptive title for the issue. +- A detailed explanation of the enhancement and why it would be useful. +- Any relevant examples or references. + +### Submitting Code Changes + +1. Fork the repository. +2. Create a new branch from `Development` (e.g., `feature-branch`). +3. Make your changes. +4. Ensure your code adheres to the [code style](./docs/contributing/style_guides.md). +5. Commit your changes with a descriptive message. +6. Push your branch to your fork. +7. Create a pull request (PR) to the `Development` branch of the original repository. + +Please ensure your PR includes: + +- A clear title and description of the change. +- References to any related issues (e.g., `Closes #123`). +- Necessary documentation updates. + +## Development Setup + +To set up a local development environment, follow the instructions in the [Development Setup](./docs/contributing/development_setup.md) guide. + +## Style Guides + +### Code Style + +Follow the existing code style. We use ESLint for JavaScript. Run `npm run lint` to check your code. + +### Commit Messages + +- Use the present tense ("Add feature" not "Added feature"). +- Capitalize the first letter. +- No period at the end. +- Include references to issues and pull requests when relevant. + +## Testing + +Please add tests for your changes and ensure all existing tests pass. Run the tests with: + +```sh +npm test diff --git a/README.md b/README.md index 6da456b4..2188ceec 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Fork the repository on GitHub. Create a feature branch. Commit your changes. Submit a pull request. -Please refer to our [Contributing Guide]() for more details. +Please refer to our [Contributing Guide](/CONTRIBUTING.md) for more details. ## FAQ and Troubleshooting Find solutions to common issues in our [FAQ and trouble shooting Guide](docs/faq.md). diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/contributing/code_of_conduct.md b/docs/contributing/code_of_conduct.md new file mode 100644 index 00000000..61b6686e --- /dev/null +++ b/docs/contributing/code_of_conduct.md @@ -0,0 +1,64 @@ +# Code of Conduct - Biocompute project + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to make participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +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 to this Code of Conduct, or to ban +temporarily or permanently any contributor for other behaviors that they deem +inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at <>. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + diff --git a/docs/contributing/development_setup.md b/docs/contributing/development_setup.md new file mode 100644 index 00000000..977a0fe6 --- /dev/null +++ b/docs/contributing/development_setup.md @@ -0,0 +1,26 @@ +### Local Deployment for Development + +Clone the Repository: + +`git clone https://github.com/biocompute/bcodb.git +cd bcodb` + +Install Dependencies: + +`pip install -r requirements.txt +npm install +` + +Run the Applications: + +`cd server +python manage.py runserver +cd ../client +npm start` + +Follow the detailed instructions in our [Local deployment Guide](/docs/localDeployment.md) +### Production Deployment +Follow the detailed instructions in our [Production deployment Guide](/docs/productionDeployment.md). + +### Docker Deployment +Our [Docker deployment Guide](/docs/dockerDeployment.md) is currently a work in progress. Stay tuned for updates. diff --git a/docs/contributing/index.md b/docs/contributing/index.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/contributing/license.md b/docs/contributing/license.md new file mode 100644 index 00000000..e69de29b diff --git a/docs/contributing/style_guides.md b/docs/contributing/style_guides.md new file mode 100644 index 00000000..b0283e6c --- /dev/null +++ b/docs/contributing/style_guides.md @@ -0,0 +1 @@ +TBD.. diff --git a/docs/contributing/testing.md b/docs/contributing/testing.md new file mode 100644 index 00000000..e69de29b