Thank you for your interest in contributing to our project! To maintain an organized workflow, please follow the steps below when submitting your code.
-
Fork the Repository (if you haven't already)
Click the Fork button at the top-right corner of the repository page to create a copy under your GitHub account.
-
Clone Your Fork
Clone the repository to your local machine:
git clone https://github.com/your-username/your-repo.git cd your-repo -
Set Upstream to Original Repository
This allows you to keep your fork up-to-date with the original repository.
git remote add upstream https://github.com/LekiTech/gafargan-web.git
-
Create a New Branch from develop
First, ensure you have the latest develop branch:
git checkout develop git pull upstream develop
Then, create a new branch for your work:
# For a new feature git checkout -b feature/your-feature-name # For a bug fix git checkout -b bugfix/your-bugfix-name
-
Work on Your Branch
Make your code changes on your new branch.
-
Regularly Merge Updates from develop
Keep your branch updated to avoid merge conflicts:
git checkout develop git pull upstream develop git checkout feature/your-feature-name git merge develop
Resolve any conflicts if they arise.
-
Commit and Push Your Changes
git add . git commit -m "Brief description of your changes" git push origin feature/your-feature-name
-
Open a Pull Request
- Navigate to your fork on GitHub.
- Click on Compare & pull request.
- Ensure the base fork is the original repository and the base branch is develop.
- Provide a clear and descriptive title and description for your pull request.
-
Add admin as a Reviewer
In the pull request, add admin to the Reviewers section to notify them of your submission.
-
Additional Guidelines
- Ensure your code follows the project's coding standards.
- Write clear and descriptive commit messages.
- Update or add documentation as necessary.
- Test your changes.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Since Next.js 15 simple npm run build will fail because it tries to connect to the database. It is not allowed in DigitalOcean by design during the build phase
To solve it I introduced a new script npm run build:prod that will build the app as next build --experimental-build-mode compile. See this issue