Thank you for considering contributing to this project! Your contributions are highly valued and appreciated. Contributions can range from fixing simple typos to implementing major new features.
- Fork the repository by clicking the "Fork" button at the top right of the project page.
- Clone your fork to your local machine
Fork the DATABASE repository 42Project_compass_DB
-
Navigate to the directory of your cloned fork:
cd 42project_compass_DB -
Depending on your contribution type:
- For learning objectives, go to the
learning_objectivesfolder. - For resources, go to the
resourcesfolder.
- For learning objectives, go to the
-
If the project file doesn’t already exist, create a new JSON file named after the project's identifier.
Example: For the
libftproject, use the project URL to determine the name:- Project link:
or
https://projects.intra.42.fr/42cursus-libft/mineThe project name ishttps://projects.intra.42.fr/projects/42cursus-libft42cursus-libft, so the file should be named42cursus-libft.json.
- Project link:
-
Follow these formats:
- Learning Objectives:
[ "Learning objective 1", "Learning objective 2" ]
- Resources:
{ "Resource topic 1": "link for resource 1", "Resource topic 2": "link for resource 2" }
- Learning Objectives:
IMPORTANT: Ensure the contents of the JSON file are validated using JSON Validator
- Open Chrome and navigate to the "Extensions" page.
- Enable Developer Mode.
- Click on Load Unpacked and select the cloned fork directory.
- Make changes to the codebase.
- Reload the extension.
- Refresh the 42 intranet page.
- Test your changes.
- Repeat steps 4–7 as needed.
-
Make your changes: Implement the new feature, fix a bug, or improve the documentation.
-
Commit your changes: Write clear and concise commit messages.
git add . git commit -m "Add feature: description of your feature"
Before submitting your changes, ensure that everything works as expected:
- Run tests: If you’ve added new functionality, make sure to write and run tests to verify your changes.
-
Push your branch to your fork:
git push origin feature/your-awesome-feature-name
-
Go to the original repository on GitHub and submit a pull request.
-
Provide a detailed description of your changes, including the motivation and context.
Your pull request will be reviewed by one of the project maintainers. Please be responsive to any feedback or requests for changes.
- JavaScript: Follow the Airbnb JavaScript Style Guide for writing clean and consistent code.
- Commit Messages: Use meaningful commit messages that describe what your changes do.
If you find a bug or have a feature request, please open an issue on GitHub. Make sure to provide detailed information about the problem, how to reproduce it, and your environment (OS, browser, etc.).
