Skip to content

Commit d556b0a

Browse files
committed
Update README.md
1 parent 2cefa67 commit d556b0a

File tree

1 file changed

+55
-28
lines changed

1 file changed

+55
-28
lines changed

README.md

Lines changed: 55 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1010
[![Discord](https://dcbadge.limes.pink/api/server/https://discord.com/invite/zerRaGK9EC)](https://discord.com/invite/zerRaGK9EC)
1111

12-
1312
Turn any Git repository into a prompt-friendly text ingest for LLMs.
1413

1514
You can also replace `hub` with `ingest` in any github url to access the coresponding digest
@@ -63,13 +62,6 @@ summary, tree, content = ingest("https://github.com/cyclotruc/gitingest")
6362

6463
By default, this won't write a file but can be enabled with the `output` argument
6564

66-
## 🛠️ Using
67-
68-
- Tailwind CSS - Frontend
69-
- [FastAPI](https://github.com/fastapi/fastapi) - Backend framework
70-
- [tiktoken](https://github.com/openai/tiktoken) - Token estimation
71-
- [apianalytics.dev](https://www.apianalytics.dev/) - Simple Analytics
72-
7365
## 🌐 Self-host
7466

7567
1. Build the image:
@@ -85,35 +77,45 @@ By default, this won't write a file but can be enabled with the `output` argumen
8577
```
8678

8779
The application will be available at `http://localhost:8000`
88-
Ensure environment variables are set before running the application or deploying it via Docker.
8980

90-
## ✔️ Contributing
81+
If you are hosting it on a domain, you can specify the allowed hostnames via env variable `ALLOWED_HOSTS`.
9182

92-
Contributions are welcome!
83+
```bash
84+
#Default: "gitingest.com,*.gitingest.com,localhost, 127.0.0.1".
85+
ALLOWED_HOSTS="example.com, localhost, 127.0.0.1"
86+
```
9387

94-
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)
88+
## 🛠️ Stack
9589

96-
### Ways to contribute
90+
- [Tailwind CSS](https://tailwindcss.com/) - Frontend
91+
- [FastAPI](https://github.com/fastapi/fastapi) - Backend framework
92+
- [Jinja2](https://jinja.palletsprojects.com/) - HTML templating
93+
- [tiktoken](https://github.com/openai/tiktoken) - Token estimation
94+
- [apianalytics.dev](https://www.apianalytics.dev/) - Simple Analytics
9795

98-
1. Provide your feedback and ideas on discord
99-
2. Open an Issue on github to report a bug
100-
3. Create a Pull request
101-
- Fork the repository
102-
- Make your changes and test them locally
103-
- Open a pull request for review and feedback
96+
## ✔️ Contributing to Gitingest
10497

105-
### 🔧 Local dev
98+
Gitingest aims to be friendly for first time contributors, with a simple python and html codebase.
99+
If you need any help while working with the code, reach out to us on [discord](https://discord.com/invite/zerRaGK9EC)
106100

107-
#### Environment Configuration
101+
### Ways to help (non-technical)
108102

109-
- **`ALLOWED_HOSTS`**: Specify allowed hostnames for the application. Default: `"gitingest.com,*.gitingest.com,gitdigest.dev,localhost"`.
110-
You can configure the application using the following environment variables:
103+
- Provide your feedback and ideas on discord
104+
- Open an Issue on github to report a bug / submit an feature request
105+
- Talk about Gitingest on social media
111106

112-
```bash
113-
ALLOWED_HOSTS="gitingest.local,localhost"
114-
```
107+
### How to submit a PR
108+
109+
1. Fork the repository & clone it locally
110+
2. Setup the dev environment (see Development section bellow)
111+
3. Run unit tests with `pytest`
112+
4. Commit your changes and run `pre-commit`
113+
5. Open a pull request on Github for review and feedback
114+
6. (Optionnal) Invite project maintainer to your branch for easier collaboration
115+
116+
## 🔧 Development
115117

116-
#### Run locally
118+
### Run web UI locally
117119

118120
1. Clone the repository
119121

@@ -125,7 +127,10 @@ ALLOWED_HOSTS="gitingest.local,localhost"
125127
2. Install dependencies
126128

127129
```bash
128-
pip install -r requirements.txt
130+
pip install -r requirements-dev.txt
131+
python -m venv .venv
132+
source .venv/bin/activate
133+
pre-commit install
129134
```
130135

131136
3. Run the application:
@@ -134,3 +139,25 @@ ALLOWED_HOSTS="gitingest.local,localhost"
134139
cd src
135140
uvicorn main:app --reload
136141
```
142+
143+
4. Run unit tests
144+
145+
```bash
146+
pytest
147+
```
148+
149+
The application should be available at `http://localhost:8000`
150+
151+
### Working on the CLI
152+
153+
1. Install the package in dev mode
154+
155+
```bash
156+
pip install -e .
157+
```
158+
159+
2. Run the CLI
160+
161+
```bash
162+
gitingest --help
163+
```

0 commit comments

Comments
 (0)