Merge pull request #741 from Era-Dorta/contributing-readme

docs: add contributing.md and additional instructions on building the docs
This commit is contained in:
Bernhard B. 2025-09-09 12:50:16 +02:00 committed by GitHub
commit cfc652dfbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 50 additions and 1 deletions

30
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,30 @@
# Contributing
Contributions are welcome, including bug reports, implementing features or writing documentation.
## Dev Environment Setup
The recommended way is to use docker compose:
1. In the `docker-compose.yml` replace the `image: bbernhard/signal-cli-rest-api:latest` for `build: "."`
The development workflow is:
1. Make changes in the source code.
2. Build the image and run a container.
```bash
docker compose build
```
```bash
docker compose up
```
3. Test the changes.
4. Bring the container down.
```bash
docker compose down
```
4. Repeat as many times as needed.
## Building the documentation
Follow the instructions in the docs [readme page](./src/docs/README.md).

View File

@ -10,4 +10,23 @@ Or, if you have `swag` installed:
```bash
swag init
```
```
Then run the app in `/src`
```bash
go run main.go
```
Or with docker compose in the root of the repository
```bash
docker compose up
```
Then navigate to the following address to view the docs
http://127.0.0.1:8080/swagger/index.html
On docker you'll get a Network error, replace the IP for the docker internal IP in the error, e.g:
http://172.18.0.2:8080/swagger/index.html