TP-24538: Initial commit for the base setup for the houston-ui

This commit is contained in:
k.kamalakannan
2023-04-08 18:14:20 +05:30
commit b239225d09
38 changed files with 5197 additions and 0 deletions

60
README.md Normal file
View File

@@ -0,0 +1,60 @@
# alfred-ui
### Install Yarn
```
npm install yarn -g
```
### Setup
Install dependencies
```
yarn install
```
In case of network timeout
```
yarn install --network-timeout 1000000000
```
Create following files in the project root.
Ask the fellow devs for api keys and copy paste them in respective files.
```
config.dev.js
config.qa.js
```
Start dev server with dev config
```
yarn dev
```
For production build
```
yarn build
yarn preview
```
## Check Eslint-Prettier
```
yarn eslint-check
yarn lint
yarn prettier-check
```
```
Please go through <strong>package.json</strong> for the scripts.
```
```
Useful Resources:
1. Configure CSP ref: https://stackoverflow.com/questions/43453624/how-to-figure-out-a-reasonable-content-security-policy-source-for-nginx-virtual
2. Verify your CSP using this link: https://csp-evaluator.withgoogle.com/
```