Skip to content

LekiTech/gafargan-web

Repository files navigation

Contributing Guide

Thank you for your interest in contributing to our project! To maintain an organized workflow, please follow the steps below when submitting your code.

How to Submit Code

  1. 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.

  2. Clone Your Fork

    Clone the repository to your local machine:

    git clone https://github.com/your-username/your-repo.git
    cd your-repo
  3. 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
  4. 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
  5. Work on Your Branch

    Make your code changes on your new branch.

  6. 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.

  7. Commit and Push Your Changes

    git add .
    git commit -m "Brief description of your changes"
    git push origin feature/your-feature-name
  8. 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.
  9. Add admin as a Reviewer

    In the pull request, add admin to the Reviewers section to notify them of your submission.

  10. 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.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open 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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy to production

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •