Welcome to GradLink! This guide will help you clone, set up, and contribute to the project.
Follow these steps to get the project running on your local machine.
git clone https://github.com/Ellvius/GradLink.git
cd frontend
Make sure Node.js (preferably the latest LTS version) is installed. Then, install the required dependencies:
npm install
# or
yarn install
# or
pnpm install
npm run dev
# or
yarn dev
# or
pnpm dev
Now, open http://localhost:3000 in your browser to check out the app! π
If the project requires environment variables, create a .env.local
file in the root directory and add them like this:
NEXT_PUBLIC_API_URL=https://api.example.com
DATABASE_URL=postgres://user:password@host:port/database
Please work on a separate branch for each feature or bug fix. Use this naming convention:
feature/your-feature-name
β For new featuresbugfix/your-bug-description
β For fixing bugshotfix/your-fix-name
β For urgent fixes
Example:
git checkout -b feature/user-authentication
- Keep commits small and meaningful.
- Follow this format for commit messages:
Example:
[Type] Brief description of changes
[Feature] Added login functionality with JWT authentication
- Ensure your code follows the projectβs style and standards.
- Before creating a PR, pull the latest changes from
main
and resolve conflicts. - Push your branch:
git push origin feature/your-feature-name
- Create a Pull Request (PR) to merge your branch into
main
. - In the PR description, clearly explain the changes you made.
- The admin will review your PR.
- If any changes are needed, update your branch and push the changes.
- Once approved, the admin will merge the PR into
main
.
βοΈ Write clean, maintainable code.
βοΈ Add comments where necessary.
βοΈ Stick to the projectβs coding style.
βοΈ Test your code before submitting a PR.