Skip to content

Commit bae4584

Browse files
authored
Merge branch 'main' into feat/support-gitingest-domain
2 parents 664a446 + 5d5edee commit bae4584

File tree

3 files changed

+99
-68
lines changed

3 files changed

+99
-68
lines changed

CONTRIBUTING.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Contributing to Gitingest
2+
3+
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).
4+
5+
## How to Contribute (non-technical)
6+
7+
- **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.
8+
- **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.
9+
- **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).
10+
11+
## How to submit a Pull Request
12+
13+
1. Fork the repository.
14+
15+
2. Clone the forked repository:
16+
17+
```bash
18+
git clone https://github.com/cyclotruc/gitingest.git
19+
cd gitingest
20+
```
21+
22+
3. Set up the development environment and install dependencies:
23+
24+
```bash
25+
python -m venv .venv
26+
source .venv/bin/activate
27+
pip install -r requirements-dev.txt
28+
pre-commit install
29+
```
30+
31+
4. Create a new branch for your changes:
32+
33+
```bash
34+
git checkout -b your-branch
35+
```
36+
37+
5. Make your changes. Make sure to add corresponding tests for your changes.
38+
39+
6. Stage your changes:
40+
41+
```bash
42+
git add .
43+
```
44+
45+
7. Run the tests:
46+
47+
```bash
48+
pytest
49+
```
50+
51+
8. Run the app locally using Docker to test your changes (optional):
52+
53+
1. Build the Docker image
54+
55+
``` bash
56+
docker build -t gitingest .
57+
```
58+
59+
2. Run the Docker container:
60+
61+
``` bash
62+
docker run -d --name gitingest -p 8000:8000 gitingest
63+
```
64+
65+
3. Open your browser and navigate to `http://localhost:8000` to see the app running.
66+
67+
9. Confirm that everything is working as expected. If you encounter any issues, fix them and repeat steps 6 to 8.
68+
69+
10. Commit your changes:
70+
71+
```bash
72+
git commit -m "Your commit message"
73+
```
74+
75+
If `pre-commit` raises any issues, fix them and repeat steps 6 to 9.
76+
77+
11. Push your changes:
78+
79+
```bash
80+
git push origin your-branch
81+
```
82+
83+
12. Open a pull request on GitHub. Make sure to include a detailed description of your changes.
84+
85+
13. Wait for the maintainers to review your pull request. If there are any issues, fix them and repeat steps 6 to 12.
86+
87+
*(Optional) Invite project maintainer to your branch for easier collaboration.*

README.md

Lines changed: 12 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ If you are hosting it on a domain, you can specify the allowed hostnames via env
9797
ALLOWED_HOSTS="example.com, localhost, 127.0.0.1"
9898
```
9999

100+
## ✔️ Contributing to Gitingest
101+
102+
### Non-technical ways to contribute
103+
104+
- **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.
105+
- **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.
106+
- **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).
107+
108+
### Technical ways to contribute
109+
110+
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).
111+
100112
## 🛠️ Stack
101113

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

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

112-
## ✔️ Contributing to Gitingest
113-
114-
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).
115-
116-
### Ways to help (non-technical)
117-
118-
- Provide your feedback and ideas on Discord
119-
- Open an issue on GitHub to report a bug / submit a feature request
120-
- Talk about Gitingest on social media
121-
122-
### How to submit a PR
123-
124-
1. Fork the repository & clone it locally
125-
2. Setup the dev environment (see Development section bellow)
126-
3. Run unit tests with `pytest`
127-
4. Commit your changes and run `pre-commit`
128-
5. Open a pull request on GitHub for review and feedback
129-
6. (Optionnal) Invite project maintainer to your branch for easier collaboration
130-
131-
## 🔧 Development
132-
133-
### Run web UI locally
134-
135-
1. Clone the repository:
136-
137-
```bash
138-
git clone https://github.com/cyclotruc/gitingest.git
139-
cd gitingest
140-
```
141-
142-
2. Install dependencies:
143-
144-
```bash
145-
pip install -r requirements-dev.txt
146-
python -m venv .venv
147-
source .venv/bin/activate
148-
pre-commit install
149-
```
150-
151-
3. Run the application:
152-
153-
```bash
154-
cd src
155-
uvicorn main:app --reload
156-
```
157-
158-
4. Run unit tests:
159-
160-
```bash
161-
pytest
162-
```
163-
164-
The application should be available at `http://localhost:8000`.
165-
166-
### Working on the CLI
167-
168-
1. Install the package in dev mode:
169-
170-
```bash
171-
pip install -e .
172-
```
173-
174-
2. Run the CLI:
175-
176-
```bash
177-
gitingest --help
178-
```
179-
180124
## Project Growth
181125

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

0 commit comments

Comments
 (0)