Create useful .gitignore files for your project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Filipe Chagas 60380b8f40 Update gitignore submodule 3 weeks ago
.github Remove spaces from close-inactive input param 6 months ago
.travis Upading templates from https://github.com/toptal/gitignore 1 year ago
Localizations fix: Japanese translation (#531) 1 year ago
Public [SAT-433] Measure Field Data in Google Analytics (#551) 11 months ago
Resources [TRA-1723] Move all assets to webpack (#541) 1 year ago
Sources Remove superfluous newline from the beginning (#575) 2 months ago
Tests Add order API endpoint (#413) 4 years ago
e2e-tests Fix security issues (#578) 4 months ago
gitignore@8a6735dc57 Update gitignore submodule 3 weeks ago
src [SAT-433] Measure Field Data in Google Analytics (#551) 11 months ago
.dockerignore Add Docker support (#393) 5 years ago
.gitignore [SAT-299] update templates 11 months ago
.gitmodules Migrate to Toptal (#494) 2 years ago
.swift-version Changed version to 4.1 4 years ago
.swiftlint.yml Fix Swiftlint rules 4 years ago
Dockerfile Fix security issues (#578) 4 months ago
LICENSE.md Update licnese date 4 years ago
Package.pins Updated to swift 3.1 (#328) 5 years ago
Package.resolved Fixes #407 4 years ago
Package.swift Fix package.swift 4 years ago
Procfile Fixes #407 4 years ago
README.md Add explicit license information about files generated by the public website. (#564) 9 months ago
app.json Updated master template list - Fixes #237 6 years ago
docker-compose-dev.yml [SAT-284] Define platform on docker-compose-dev (#544) 1 year ago
docker-compose.yml Migrate to Toptal (#494) 2 years ago
jest-puppeteer.config.js Migrate to Toptal (#494) 2 years ago
jest.config.js Migrate to Toptal (#494) 2 years ago
package.json Fix security issues (#578) 4 months ago
webpack.config.js [TRA-1723] Move all assets to webpack (#541) 1 year ago
yarn.lock Fix security issues (#578) 4 months ago

README.md


Create useful .gitignore files for your project

Travis Code Climate Test Coverage Code Climate Maintainability Platforms license

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.

Documentation

Complete gitignore.io documentation: https://docs.gitignore.io/

Docker Container

Prerequisites

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

Development mode mounts the following directories to docker volumes:

  • /Public
  • /Resources

LESS and CSS

The app uses LESS 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.

...
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
  • E2E tests in pages folder - implemented with Puppeteer

Prerequisites:

Running:

  • 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