Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toptal/gitignore.io
Create useful .gitignore files for your project
https://github.com/toptal/gitignore.io
gitignore gitignore-files linux macos server-side-swift swift vapor-swift
Last synced: about 1 month ago
JSON representation
Create useful .gitignore files for your project
- Host: GitHub
- URL: https://github.com/toptal/gitignore.io
- Owner: toptal
- License: mit
- Created: 2013-02-14T14:25:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T09:50:46.000Z (6 months ago)
- Last Synced: 2024-04-13T18:42:02.278Z (5 months ago)
- Topics: gitignore, gitignore-files, linux, macos, server-side-swift, swift, vapor-swift
- Language: Swift
- Homepage: https://www.toptal.com/developers/gitignore
- Size: 13.4 MB
- Stars: 8,051
- Watchers: 94
- Forks: 608
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-starred - toptal/gitignore.io - Create useful .gitignore files for your project (swift)
- awesome-github-star - gitignore.io
- my-awesome - toptal/gitignore.io - files,linux,macos,server-side-swift,swift,vapor-swift pushed_at:2024-06 star:8.2k fork:0.6k Create useful .gitignore files for your project (Swift)
- jimsghstars - toptal/gitignore.io - Create useful .gitignore files for your project (Swift)
README
![]()
Create useful .gitignore files for your project
## About
.gitignore.io is a web service designed to help you create .gitignore files for
your Git repositories. The site has a graphical and command line method of
creating a .gitignore for your operating system, programming language, or IDE.## `.gitignore` Template Source
Source templates for gitignore.io: https://github.com/toptal/gitignore
## License of the generated files
All files generated by https://www.toptal.com/developers/gitignore are under [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
## Documentation
Complete gitignore.io documentation: https://docs.gitignore.io/
## Docker Container
### Prerequisites
- [Docker](https://www.docker.com/)
### Build
#### Production
```
docker-compose up --build
```#### Development
```
docker-compose -f ./docker-compose-dev.yml build
```
```
docker-compose -f ./docker-compose-dev.yml up
```It will start the web server running on [http://localhost:8080](http://localhost:8080)
Development mode mounts the following directories to docker volumes:
- `/Public`
- `/Resources `## LESS and CSS
The app uses [LESS](http://lesscss.org/) as its CSS preprocessor for the files in `Public/css`.
To process the less file you need to:
- Install all dependencies with `yarn install`
- Process the assets with `yarn build`## Environment Variables
Please set your environment variables to docker configurations. All are optional.
```yml
...
services:
app:
...
environment:
HOST_ORIGIN: http://www.example.com
BASE_PREFIX: /foo/bar
GOOGLE_ANALYTICS_UID:
...
...
```### HOST_ORIGIN
Origin of your web server, falls back to https://www.toptal.com
```
HOST_ORIGIN: http://www.example.com
```### BASE_PREFIX
If you want to host this web server under a subdirectory (http://www.example.com/foo/bar for example), please set this variable.
```
BASE_PREFIX: /foo/bar
```### GOOGLE_ANALYTICS_UID
User ID for Google Tag Manager snippet
```
GOOGLE_ANALYTICS_UID: UA-XXXXXXXX-X
```## E2E Tests
Tests are located in `e2e-tests` folder with:
- API tests in `api` folder - implemented using [Superagent](https://github.com/visionmedia/superagent)
- E2E tests in `pages` folder - implemented with [Puppeteer](https://github.com/puppeteer/puppeteer)Prerequisites:
- [Node.js](https://nodejs.org/en/) 12.9 or above.
- [Yarn](https://yarnpkg.com/lang/en/) 1.15.2 or 1.17.3Running:
- Set the BASE_URL env variable (only if you have changed the default URL or port)
- docker-compose up --build --detach
- yarn gitupdate
- yarn install
- yarn build
- yarn test
- docker-compose stop