You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-79Lines changed: 4 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,86 +139,11 @@ docker-compose up --build -d
139
139
140
140
### Running the app (Locally/Debugging Purposes)
141
141
142
-
#### Mongo and Redis Setup
142
+
1. Run `yarn install` in the `client` and `server` directories.
143
+
1. Run `docker compose -f docker-compose.yml -f docker-compose.dev.yml up -V --build` to start the development containers. The client will be running on http://localhost:5050 and the server will be listening on port 5001. Editing files should work as expected.
143
144
144
-
1. Open the `docker-compose.yml` file and comment out all services except `caching` and `mongodb`
145
-
146
-
2. Running Redis and Mongo
147
-
148
-
```
149
-
docker-compose up --build -d
150
-
```
151
-
152
-
#### Client Setup
153
-
154
-
1. Setting up the client `.env` file (Placed in the root of your `client` folder)
155
-
156
-
```
157
-
REACT_APP_BACKEND_URL="http://localhost:3001"
158
-
```
159
-
160
-
2. Setting up `axios.ts`
161
-
162
-
> Note: Since we're running poll voting app locally, we'll need to provide some extra information that normally Shibboleth would provide to us.
163
-
164
-
> Your `axios.ts` file should look like the following:
165
-
166
-
```
167
-
export const instance = axios.create({
168
-
headers: { utorid: "utorid" },
169
-
baseURL: `${process.env.REACT_APP_BACKEND_URL}`,
170
-
});
171
-
```
172
-
173
-
3. Setting up `socket.ts`
174
-
175
-
> Note: Since we're running poll voting app locally, we'll need to provide some extra information that normally Shibboleth would provide to us.
176
-
177
-
> Your `socket.ts` file should look like the following:
0 commit comments