-
Notifications
You must be signed in to change notification settings - Fork 4
Development
-
Fork the Repository: Start by forking the CRISP repository to your own GitHub account.
-
Clone Your Fork: Clone your fork to your local machine:
git clone https://github.com/<your-username>/CRISP.git
-
Install Dependencies: Navigate to both the frontend and backend directories and install the necessary packages using npm
cd CRISP/multi-git-dashboard npm install cd ../backend npm install
-
Environment Setup: Set up your local environment by creating .env files in the frontend and backend directories. Use the .env.example as a template.
-
Run the Development Servers: For the frontend and backend, run the development servers:
// For multi-git-dashboard npm run dev // For backend npm run dev
Write clear and detailed commit messages. A commit message consists of a header, a body, and a footer. The header has a special format that includes a type, a scope, and a subject:
<type>(<scope>): <short summary>
<body>
<footer>
Example commit message:
feat(authentication): implement OAuth2 login flow
Implemented the OAuth2 login flow using the passport library. This includes
routes for redirecting to the OAuth provider, callback routes, and user session
management.
Resolves #123
Once you're ready to share your contributions, follow these steps to submit a Pull Request using the forking workflow:
-
Create a New Branch: Create a new branch for your changes based on the main branch on your GitHub fork.
git checkout -b feature/my-new-feature main
-
Make Your Changes: Implement your feature or fix and commit your changes using the provided format.
-
Keep Your Branch Updated: Regularly pull the latest changes from the upstream repository and merge them into your branch to keep it up to date.
git fetch upstream git rebase upstream/main
-
Run the code formatter: Run the Prettier script in both the frontend and the backend
cd multi-git-dashboard npm run prettier-format cd ../backend npm run prettier-format
-
Push Your Changes: Push your branch and changes to your GitHub fork.
git push origin feature/my-new-feature
-
Open a Pull Request (PR): Go to your fork on GitHub and create a new Pull Request against the
staging
branch of the upstream repository. Make sure to fill out the PR template with the necessary details.