项目作者: HDRUK

项目描述 :
HDR UK Gateway Web
高级语言: JavaScript
项目地址: git://github.com/HDRUK/gateway-web.git
创建时间: 2020-05-13T10:07:37Z
项目社区:https://github.com/HDRUK/gateway-web

开源协议:Apache License 2.0

下载


LICENCE
Support

HDR UK GATEWAY - Frontend (ReactJS)

This is a React Application, which provides the Front End to the Gateway. It uses axios to perform XMLHttpRequests from the browser to negotiate with the Gateway’s Back-end API server gateway-api for all user interactions with the Gateway resources.

Installation / Running Instructions

To set up the API on your local do the following steps

Step 1

Clone the WEB repository.

  1. git clone https://github.com/HDRUK/gateway-web

Step 2

Run the npm install and add axios module via command line.

  1. npm install
  2. npm i -S axios

Step 3

Start the WEB via command line.

  1. npm start

Configuring vscode

  1. Go to File > Preferences > Settings
  2. On your right-hand side, there is an icon to Open Settings in JSON format. Click on that icon
  3. Add below JSON code there
  1. {
  2. "editor.codeActionsOnSave": { "source.fixAll.eslint": true },
  3. "editor.formatOnSave": true,
  4. "editor.defaultFormatter": "esbenp.prettier-vscode",
  5. "eslint.alwaysShowStatus": true,
  6. "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  7. "security.workspace.trust.untrustedFiles": "open"
  8. }

.env

Skip preflight check needs to be true due to conflict with babel loader versions between storybook and react-scripts.

Please create your own .env file with the content from .env.example.