No description
  • TypeScript 83.4%
  • SCSS 9.6%
  • JavaScript 5.6%
  • HTML 0.8%
  • Less 0.4%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-06-10 17:15:01 +03:00
deployments/dev simplify local run 2019-01-11 00:42:19 +03:00
src margin-bottom from alert 2020-04-18 20:17:26 +03:00
.gitignore simplify local run 2019-01-11 00:42:19 +03:00
.travis.yml ci: fix docker login 2019-06-30 16:49:04 +03:00
CONTRIBUTING.md relogin and CLA 2018-11-04 12:58:45 +03:00
LICENSE initial commit 2018-02-17 15:58:32 +03:00
package.json update axios and webpack-bundle-analyzer 2019-06-30 15:46:37 +03:00
Procfile initial commit 2018-02-17 15:58:32 +03:00
README.md trigger ci build 2019-06-30 16:03:58 +03:00
tsconfig.json fetch private repos, but their activation isn't supported now 2018-05-02 22:26:08 +08:00
tslint.yaml update message about the service closing 2020-04-18 19:18:47 +03:00
webpack.config.js improve product and customers pages 2019-06-30 15:40:45 +03:00
yarn.lock Bump websocket-extensions from 0.1.3 to 0.1.4 2020-06-06 22:56:56 +00:00

Build Status GolangCI

API

This repository contains code of web part of GolangCI.

Technologies

We use React, TypeScript, Redux. Antd is used as a UI framework.

Development

Prepare SSL certificate

You need to generate self-signed SSL certificate for local caddy (default self-signed caddy certificates aren't allowed by modern browsers):

mkdir -p ssl
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout ssl/golangci.key -out ssl/golangci.crt -extensions san -config <(echo "[req]"; echo distinguished_name=req; echo "[san]"; echo subjectAltName=DNS:dev.golangci.com,DNS:api.dev.golangci.com) -subj /CN=dev.golangci.com

After that add golangci.crt to the list of your OS trusted root CAs.

Run Caddy

Map domains to the localhost:

sudo sh -c 'echo 127.0.0.1 dev.golangci.com >>/etc/hosts'
sudo sh -c 'echo 127.0.0.1 api.dev.golangci.com >>/etc/hosts'

The following will run Caddy server in background:

brew install caddy
sudo npm run caddy

Run application server

npm run dev

It opens https://dev.golangci.com in a default browser.

How to lint code

npm run lint_fix

It will run tslint in auto-fix mode.

How to make test build

We deploy out code on Heroku. Heroku runs npm run heroku-postbuild to build code.

How to test SSR

npm run dev runs dev-server without server-side rendering, to enable it run like in production:

npm start

Contributing

See CONTRIBUTING.