Skip to content

Commit

Permalink
Merge branch 'main' into fix/dependabot-config-location
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclotruc authored Jan 15, 2025
2 parents c984284 + 467a2e4 commit 53710ac
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 68 deletions.
87 changes: 87 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Contributing to Gitingest

Thanks for your interest in contributing to Gitingest! 🚀 Gitingest aims to be friendly for first time contributors, with a simple python and html codebase. We would love your help to make it even better. If you need any help while working with the code, please reach out to us on [Discord](https://discord.com/invite/zerRaGK9EC).

## How to Contribute (non-technical)

- **Create an Issue**: If you find a bug or have an idea for a new feature, please [create an issue](https://github.com/cyclotruc/gitingest/issues/new) on GitHub. This will help us track and prioritize your request.
- **Spread the Word**: If you like Gitingest, please share it with your friends, colleagues, and on social media. This will help us grow the community and make Gitingest even better.
- **Use Gitingest**: The best feedback comes from real-world usage! If you encounter any issues or have ideas for improvement, please let us know by [creating an issue](https://github.com/cyclotruc/gitingest/issues/new) on GitHub or by reaching out to us on [Discord](https://discord.com/invite/zerRaGK9EC).

## How to submit a Pull Request

1. Fork the repository.

2. Clone the forked repository:

```bash
git clone https://github.com/cyclotruc/gitingest.git
cd gitingest
```

3. Set up the development environment and install dependencies:

```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install
```

4. Create a new branch for your changes:

```bash
git checkout -b your-branch
```

5. Make your changes. Make sure to add corresponding tests for your changes.

6. Stage your changes:

```bash
git add .
```

7. Run the tests:

```bash
pytest
```

8. Run the app locally using Docker to test your changes (optional):

1. Build the Docker image

``` bash
docker build -t gitingest .
```

2. Run the Docker container:

``` bash
docker run -d --name gitingest -p 8000:8000 gitingest
```

3. Open your browser and navigate to `http://localhost:8000` to see the app running.

9. Confirm that everything is working as expected. If you encounter any issues, fix them and repeat steps 6 to 8.

10. Commit your changes:

```bash
git commit -m "Your commit message"
```

If `pre-commit` raises any issues, fix them and repeat steps 6 to 9.

11. Push your changes:

```bash
git push origin your-branch
```

12. Open a pull request on GitHub. Make sure to include a detailed description of your changes.

13. Wait for the maintainers to review your pull request. If there are any issues, fix them and repeat steps 6 to 12.

*(Optional) Invite project maintainer to your branch for easier collaboration.*
80 changes: 12 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ If you are hosting it on a domain, you can specify the allowed hostnames via env
ALLOWED_HOSTS="example.com, localhost, 127.0.0.1"
```

## ✔️ Contributing to Gitingest

### Non-technical ways to contribute

- **Create an Issue**: If you find a bug or have an idea for a new feature, please [create an issue](https://github.com/cyclotruc/gitingest/issues/new) on GitHub. This will help us track and prioritize your request.
- **Spread the Word**: If you like Gitingest, please share it with your friends, colleagues, and on social media. This will help us grow the community and make Gitingest even better.
- **Use Gitingest**: The best feedback comes from real-world usage! If you encounter any issues or have ideas for improvement, please let us know by [creating an issue](https://github.com/cyclotruc/gitingest/issues/new) on GitHub or by reaching out to us on [Discord](https://discord.com/invite/zerRaGK9EC).

### Technical ways to contribute

Gitingest aims to be friendly for first time contributors, with a simple python and html codebase. If you need any help while working with the code, reach out to us on [Discord](https://discord.com/invite/zerRaGK9EC). For detailed instructions on how to make a pull request, see [CONTRIBUTING.md](./CONTRIBUTING.md).

## 🛠️ Stack

- [Tailwind CSS](https://tailwindcss.com) - Frontend
Expand All @@ -109,74 +121,6 @@ If you are hosting it on a domain, you can specify the allowed hostnames via env

Check out the NPM alternative 📦 Repomix: <https://github.com/yamadashy/repomix>

## ✔️ Contributing to Gitingest

Gitingest aims to be friendly for first time contributors, with a simple python and html codebase. If you need any help while working with the code, reach out to us on [Discord](https://discord.com/invite/zerRaGK9EC).

### Ways to help (non-technical)

- Provide your feedback and ideas on Discord
- Open an issue on GitHub to report a bug / submit a feature request
- Talk about Gitingest on social media

### How to submit a PR

1. Fork the repository & clone it locally
2. Setup the dev environment (see Development section bellow)
3. Run unit tests with `pytest`
4. Commit your changes and run `pre-commit`
5. Open a pull request on GitHub for review and feedback
6. (Optionnal) Invite project maintainer to your branch for easier collaboration

## 🔧 Development

### Run web UI locally

1. Clone the repository:

```bash
git clone https://github.com/cyclotruc/gitingest.git
cd gitingest
```

2. Install dependencies:

```bash
pip install -r requirements-dev.txt
python -m venv .venv
source .venv/bin/activate
pre-commit install
```

3. Run the application:

```bash
cd src
uvicorn main:app --reload
```

4. Run unit tests:

```bash
pytest
```

The application should be available at `http://localhost:8000`.

### Working on the CLI

1. Install the package in dev mode:

```bash
pip install -e .
```

2. Run the CLI:

```bash
gitingest --help
```

## Project Growth

[![Star History Chart](https://api.star-history.com/svg?repos=cyclotruc/gitingest&type=Date)](https://star-history.com/#cyclotruc/gitingest&Date)

0 comments on commit 53710ac

Please sign in to comment.