Thank you for considering contributing to the Paziresh24 - Patient Front-end! By contributing, you become part of a community dedicated to revolutionizing healthcare services and making a positive impact on patients' lives. Whether you're a seasoned developer or just starting, your contributions are highly valued and appreciated.
To ensure a smooth and collaborative process, please follow these guidelines when contributing to the project:
The development branch is main
. This is the branch that all pull
requests should be made against. The changes on the main
branch are tagged into a release monthly.
To develop locally:
-
Fork this repository to your own GitHub account and then clone it to your local device.
-
Create a new branch:
git checkout -b MY_BRANCH_NAME
-
Install the dependencies with:
npm install
-
Set up your
.env
file:- Duplicate
.env.example
to.env
. - If you wish to request data from the develop environment, use
.env.development.example
instead.
- Duplicate
-
Start developing and watch for code changes:
npm run dev
-
You can either grant a temporary exception in your browser, or create and install a local certificate and use your OS to mark them as "trusted". The instructions below will show you how to create and install a local certificate.
We will be using mkcert to create and install a locally-trusted, development certificate. The following will install
mkcert
and then create and install the local certificates.brew install mkcert npm run mkcert-localhost
You can now run the dev server with
npm run dev
and open https://localhost:8766. There should not see a warning about your connection not being private. You should also see a lock or similar icon in the address bar of your browser. -
Install "Allow CORS" browser extension
For Chrome users | For Firefox users
Note: These are temporary solutions for local development/testing.
You can build the project with:
npm run build
Please be sure that you can make a full production build before pushing code.
To check the formatting of your code:
npm run lint
If you get errors, be sure to fix them before committing.
-
Push to Your Fork: Push your changes to your forked repository
-
Open a Pull Request: Go to the original project repository on GitHub and click the "Compare & pull request" button. Provide a detailed description of your changes, including the problem solved and any additional context.
-
Review Process: The project maintainers will review your PR, provide feedback, and request any necessary changes. Please be patient during this process, as it may take some time.
-
Merge Your Contribution: Once your PR is approved and all checks pass, it will be merged into the
master
branch, and your changes will become a part of the project.
If you encounter any bugs or have suggestions for improvements, feel free to create a new topic on the community. Provide as much detail as possible to help the community understand the problem or suggestion better.
-
Follow the coding style and guidelines already established in the project to maintain code consistency.
-
Write clean and readable code with appropriate comments and documentation to help other contributors understand your changes.
-
Use meaningful names for variables, functions, and components to improve code readability.