To get the project up and running, follow these steps:
Clone the repository:
First, clone the repository to your local machine by running the following command:
git clone https://github.com/SRM-IST-KTR/githubsrmv2.git
Install dependencies:
Run the following command to install all necessary dependencies:
yarn install
Start the development server:
Use the command below to start the server locally:
yarn dev
View the project:
Open http://localhost:3000 in your browser to view the result.
Edit the project:
You can start editing the project by modifying pages/index.js
. Any changes you make will automatically refresh in the browser.
API Routes:
API routes can be accessed at http://localhost:3000/api/hello.
This route can be edited in pages/api/hello.js
. The pages/api
directory is mapped to /api/*
. Files in this directory behave as API routes, not as React pages.
Font Optimization:
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
๐ ๏ธ Guidelines for Handling Repository Issues
Please follow these rules and instructions when contributing to the repository:
๐ Claiming an Issue:
Check for issues:
Visit the โIssuesโ section in the repository for open issues related to bug fixes, feature requests, or UI updates.
Comment to claim:
To work on an issue, you must claim it by commenting on the issue. Say something like, โIโd like to work on this.โ
Assignment confirmation:
A Tech Lead will assign the issue to you. Do not start working on the issue until it is officially assigned to you.
Development: Link a development branch to the issue and keep all your work there. When done, create a pull request and add the President, Vice President and Tech Lead as the reviewers. Follow branch naming convention as mentioned in the next section
๐ท๏ธ Branch Naming Convention:
When working on an issue, create a new branch with the following naming scheme:
<your-initials>/<component>/<short-description>
Example: uj/navbar/add-links
๐ Creating Pull Requests (PR):
Once youโve completed your work:
Create a pull request:
Include detailed information:
Your PR should include:
Add yourself and reviewer:
๐ Important PR Rules:
Workflows:
Closing the issue:
When the PR is merged successfully, the Tech Lead will close the issue. You donโt need to close the issue yourself.
โ ๏ธ Additional Notes: