Just simply download gitignore file by,
curl -s "http://localhost:8080/api/gi/get?for=go" -o .gitignore- Generate
.gitignoreFiles: Easily generate.gitignorefiles for multiple languages and frameworks. - API Endpoints: Access various endpoints to fetch
.gitignoretemplates and check service health. - Health Check: Monitor the service health with detailed health check endpoints.
- Static File Serving: Serve static files like images and documents from the
/staticendpoint.
- Go 1.18 or later
- Git
git clone https://github.com/mrinjamul/gitignore-service.git
cd gitignore-serviceFor Linux,
export $(cat .env | xargs)For Windows,
Get-Content .env | ForEach-Object { if ($_ -and $_ -notmatch '^\s*#') { $parts = $_ -split '=', 2; [System.Environment]::SetEnvironmentVariable($parts[0].Trim(), $parts[1].Trim()) } }go mod downloadgo run .Base URL: http://localhost:8080
Endpoints:
GET /static/*filepath--> Serves static files.GET /--> Main page.GET /api/gi/--> Fetch list of.gitignorefiles.GET /api/gi?for=go--> Fetch a specific.gitignorefiles.GET /api/gi/get?for=go--> Download a specific.gitignorefile.GET /api/health--> Health check endpoint.GET /api/health/full--> Detailed health check.
Contributions are welcome! To contribute:
-
Fork the repository:
Click the "Fork" button at the top right of the repository page on GitHub.
-
Create a new branch:
git checkout -b feature-branch
-
Commit your changes:
git commit -am 'Add new feature' -
Push to the branch:
git push origin feature-branch
-
Create a new Pull Request:
Go to the repository on GitHub, switch to your branch, and click "New Pull Request".
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or issues, please open an issue on GitHub or contact the project maintainer.