First you're gonna need to install ssl certificate for localhost.
For MacOS:
-
Go to
server/cert
and double clickrootCA.pem
. It will add this certificate to Keychain app. Next in the keychain app select this certificate (it's called Storiqa), right click -> Get Info -> Trust -> Always trust. This will enablehttps
for Chrome and Safari. -
For Firefox go to
about:preferences#privacy
. Scroll down toView certificates
. Then on authorities clickimport
and addrootCA.pem
.
установите зависимости: yarn
yarn dev
-- бэкенд на stable (используется в большинстве случаев).
yarn dev:nightly
-- если разработчику нужна свежая бэковая фича с nightly контура.
yarn server:prod
yarn build
(создаст бандл для SPA и стили в папке build
)
yarn server:dist:build
(создаст бандл для сервера в папке dist
)
yarn checkImage
GRAYLOG_CLUSTER
yarn cypress:docker
Install cypress
globally:
yarn global add [email protected]
then run
yarn cypress:dev
Содержимое config/development.toml
для микросервиса users
:
[jwt]
secret_key = "jwt secret key"
[google]
info_url = "https://www.googleapis.com/userinfo/v2/me"
[facebook]
info_url = "https://graph.facebook.com/me"
Ключ --no-verify
REACT_APP_HOST=https://localhost:3443