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.
To set up the API on your local do the following steps
Clone the WEB repository.
git clone https://github.com/HDRUK/gateway-web
Run the npm install and add axios module via command line.
npm install
npm i -S axios
Start the WEB via command line.
npm start
- Go to File > Preferences > Settings
- On your right-hand side, there is an icon to Open Settings in JSON format. Click on that icon
- Add below JSON code there
{
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.alwaysShowStatus": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"security.workspace.trust.untrustedFiles": "open"
}
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.