Thank you for considering contributing to FFCS On The Go - VIT University! Whether you're a seasoned developer or new to open-source, we appreciate your involvement.
- Installing the Application Locally
- Before You Start
- Where to Look for Code or Add New Code
- Naming Scheme and Rules
To get started with contributing, you need to set up the application on your local machine.
Ensure you have the following installed:
- Fork the repository on GitHub.
- Clone your fork to your local machine:
git clone https://github.com/vatz88/FFCSonTheGo.git
- Navigate to the project directory:
cd FFCSonTheGo
- Install the dependencies:
yarn install
- Run the application:
yarn start
- Open your browser and navigate to
http://localhost:1234
to see the application running.
- Look for existing issues: Check if the issue you want to work on is already reported.
- Comment on the issue: Let us know if you're working on it to avoid duplication.
- Create a new branch for your work:
git checkout -b issue-<issue-number>-description
- Search existing issues to avoid duplicates.
- Open a new issue: Provide a detailed description, steps to reproduce (if applicable), and any other relevant information.
- Label your issue: Use appropriate labels like
bug
,enhancement
,question
, etc.
- Code is located in the
src
directory. - Tests are located in the
tests
directory. - Schemas are located in the
schemas
directory. - Data is located in the
util
directory.
- Identify the appropriate directory: Follow the existing project structure.
- Follow the naming schemes and rules (see below).
- Write tests for your new code.
- Use lowercase letters.
- Use hyphens to separate words (e.g.,
user-profile
,dashboard-widget
).
- Use camelCase for variable and function names (e.g.,
getUserName
,fetchData
). - Use PascalCase for component and class names (e.g.,
UserProfile
,DataFetcher
).
- Use hyphens to separate words (e.g.,
user-profile
,main-header
).
-
Write clear and concise commit messages.
-
Use the following format for commit messages:
[Type]: Description [Optional body explaining what and why]
Example:
fix: resolve issue with user login Fixed the authentication bug that caused login failures.
-
Ensure pull requests are focused: Only address one issue or feature per pull request.
- Follow the coding standards.
- Maintain consistency with the existing codebase.
- Write clear and understandable code.
- Add comments where necessary to explain complex logic.
- Use Bootstrap 5 CSS classes for styling.
- Refrain from using custom CSS unless absolutely necessary.
- Comment your code in places where understanding it is not straightforward.
- Do not overdo it; only comment where necessary.
- Remove all unused code.
- Do not leave commented-out code in the codebase unless it is necessary to keep for future reference.
By following these guidelines, you'll help keep our project consistent and maintainable.