Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 2, 2023. It is now read-only.
/golangci-webPublic archive

Web for GolangCI

License

NotificationsYou must be signed in to change notification settings

golangci/golangci-web

Build StatusGolangCI

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 togenerate self-signed SSL certificate for local caddy (default self-signed caddy certificates aren't allowed by modern browsers):

mkdir -p sslopenssl 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 addgolangci.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 caddysudo npm run caddy

Run application server

npm run dev

It openshttps://dev.golangci.com in a default browser.

How to lint code

npm run lint_fix

It will runtslint in auto-fix mode.

How to make test build

We deploy out code on Heroku. Heroku runsnpm 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

SeeCONTRIBUTING.

About

Web for GolangCI

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp