Skip to content

Commit

Permalink
updated read.me
Browse files Browse the repository at this point in the history
  • Loading branch information
lauren-mieczkowski committed Jan 17, 2024
1 parent ea36d60 commit 5c38149
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 47 deletions.
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ REACT_APP_SOURCE_LINK=https://github.com/DISHDevEx/findr-orchestrator
REACT_APP_SUPPORT_LINK=https://github.com/DISHDevEx/findr
REACT_APP_GA_TRACKING_ID=
REACT_APP_SENTRY_DSN=
# REACT_APP_ORACLE_URL=
5 changes: 2 additions & 3 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
REACT_APP_NAME=FINDR (Prod)
REACT_APP_CONTACT_MAIL=m6v3l9@gmail.com
REACT_APP_CONTACT_MAIL=mss@gmail.com
REACT_APP_SOURCE_LINK=https://github.com/DISHDevEx/findr-orchestrator
REACT_APP_SUPPORT_LINK=https://github.com/DISHDevEx/findr
REACT_APP_GA_TRACKING_ID=
REACT_APP_SENTRY_DSN=
REACT_APP_ORACLE_URL="http://a52c356e9b4b540c59d2c7db947ace25-1368697784.us-east-1.elb.amazonaws.com:9000"
REACT_APP_SENTRY_DSN=
1 change: 0 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ REACT_APP_SOURCE_LINK=https://github.com/DISHDevEx/findr-orchestrator
REACT_APP_SUPPORT_LINK=https://github.com/DISHDevEx/findr
REACT_APP_GA_TRACKING_ID=
REACT_APP_SENTRY_DSN=
REACT_APP_ORACLE_URL="http://a52c356e9b4b540c59d2c7db947ace25-1368697784.us-east-1.elb.amazonaws.com:9000"
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Based on React Material Admin which is a free and open-source admin application
## Getting Started

```
#Clone repo, navigate to root and run:
#To develop and interact with locally:
1. Clone repo, navigate to root and run:
rm -rf node_modules
rm -rf package-lock.json
yarn config set "strict-ssl" false -g
Expand All @@ -19,16 +20,25 @@ yarn run start
```

This will automatically open [http://localhost:3000](http://localhost:3000).
This will automatically open [http://localhost:7001](http://localhost:7001).

```
If the UI has been deployed with terraform on an EKS cluster, you may access the UI by using the node IP provided to you
OR you can port-forward the UI by using the command:
kubectl port-forward <ui pod name> -n ui 7001:7001
```

## Features

```
- Admin
- Home
- Dashboard
- Connect
- Manage
- FAQ
- Help Center
- Documentation
- Profile Activity
- Profile Information
- Profile Password
Expand All @@ -42,7 +52,6 @@ This will automatically open [http://localhost:3000](http://localhost:3000).
- Not Found
- Under Construction
- Landing
- User Management
```

## Technologies
Expand All @@ -68,7 +77,3 @@ This will automatically open [http://localhost:3000](http://localhost:3000).
| Validation | Yup | [Docs](https://github.com/jquense/yup) |


## License

This project is licensed under the terms of the
[MIT license](/LICENSE).
24 changes: 0 additions & 24 deletions src/connect/hooks/useRegisterDevice.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/connect/pages/DeviceRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import { NavLink, Outlet } from "react-router-dom";
import { useAuth } from "../../auth/contexts/AuthProvider";
import QueryWrapper from "../../core/components/QueryWrapper";
import { useSnackbar } from "../../core/contexts/SnackbarProvider";
import SvgContainer from "../../core/components/SvgContainer";
import { ReactComponent as S3Svg } from "../assets/amazon-s3.svg";
import { ReactComponent as DynamoSvg } from "../assets/aws-dynamodb.svg";
import { useAddDevice } from "../hooks/useAddDevice";
import { useDeleteDevices } from "../hooks/useDeleteDevices";
import { useUpdateDevice } from "../hooks/useUpdateDevice";
Expand Down
14 changes: 6 additions & 8 deletions src/mocks/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ function generateId() {
return (Math.floor(Math.random() * 10000) + 1).toString();
}

// const axiosMockInstance = axios.create();

// This sets the mock adapter on the default instance
export const mock = new MockAdapter(axios, { delayResponse: 10, onNoMatch: "throwException" });

// Activity
// mock.restore();
// mock.restore(); this will remove mocking behavior
mock.onGet("/api/activity-logs").reply(200, activityLogs);

// Auth
Expand Down Expand Up @@ -59,8 +57,8 @@ mock
.reply(({ data }) => [201, { ...JSON.parse(data), id: generateId() }]);
mock.onPut("/api/devices").reply(({ data }) => [200, data]);

// Oracle
mock
.onPost("http://3.95.191.132:30806/oracle")
.reply(({ data }) => [201, { ...JSON.parse(data), id: generateId() }]);
mock.onPost("/oracle").reply(200);
// // If wanting to use axios, instead of fetch. Set up mock for oracle endpoint
// mock
// .onPost("http://3.95.191.132:30806/oracle")
// .reply(({ data }) => [201, { ...JSON.parse(data), id: generateId() }]);
// mock.onPost("/oracle").reply(200);

0 comments on commit 5c38149

Please sign in to comment.