Skip to content

Commit 92ff194

Browse files
committed
Remove UIcode/server.js and update directory structure
1 parent 0750216 commit 92ff194

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+16877
-20679
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ fabric.properties
119119
**/*.rs.bk
120120

121121
enigma-types.h
122-
UIcode/client/.env.development
122+
UIcode/.env.development
File renamed without changes.

UIcode/README.md

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
11
# React File Upload
22

3-
> This is a full stack React-Express file uploader but could easily be modified to work with any back-end including cloud storage
3+
- This is a React UI to interact with the backend and the Enclave service.
4+
- It is still in development, for now using it client you can report new user data and upload location history.
5+
- For simplicity, we are currently only supporting Google sign-in
46

57
## Quick Start
68

79
```bash
8-
# Install dependencies server/client
9-
npm install
10-
cd client
10+
# Install dependencies
1111
npm install
1212

1313
# Create .env.development file as follows
1414
touch .env.development
15+
```
16+
17+
Obtain a Google client ID following the instructions on [https://developers.google.com/identity/sign-in/web/sign-in](https://developers.google.com/identity/sign-in/web/sign-in) and make sure to include the `localhost:3000` to authorized origins.
18+
Then add this variable to your `.env.development`
19+
20+
```bash
21+
#set google client id i.e. 119469794689-hhq7rpcmd88c7r5gkiom0u2pakfka3cd.apps.googleusercontent.com
22+
echo "REACT_APP_GOOGLE_CLIENT_ID=119469794689-hhq7rpcmd88c7r5gkiom0u2pakfka3cd.apps.googleusercontent.com" >> .env.development
23+
```
1524

16-
# set API url i.e. http://localhost:4080
17-
echo "REACT_APP_API_URL=http://localhost:4080" >> .env.development
25+
Top run the backend API check [https://github.com/cmalfesi/SafeTrace/tree/master/backend](https://github.com/cmalfesi/SafeTrace/tree/master/backend)
26+
Then add the API URL to your `.env.development`
1827

28+
```bash
1929
#set google client id i.e. 119469794689-hhq7rpcmd88c7r5gkiom0u2pakfka3cd.apps.googleusercontent.com
2030
echo "REACT_APP_GOOGLE_CLIENT_ID=119469794689-hhq7rpcmd88c7r5gkiom0u2pakfka3cd.apps.googleusercontent.com" >> .env.development
31+
```
32+
33+
Finally to run the client execute the following commands:
2134

35+
```bash
2236
# Serve on localhost:3000
23-
cd client
2437
npm start
2538
```

0 commit comments

Comments
 (0)