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
@@ -141,86 +141,11 @@ docker-compose up --build -d
141
141
142
142
### Running the app (Locally/Debugging Purposes)
143
143
144
-
#### Mongo and Redis Setup
144
+
1. Run `yarn install` in the `client` and `server` directories.
145
+
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.
145
146
146
-
1. Open the `docker-compose.yml` file and comment out all services except `caching` and `mongodb`
147
-
148
-
2. Running Redis and Mongo
149
-
150
-
```
151
-
docker-compose up --build -d
152
-
```
153
-
154
-
#### Client Setup
155
-
156
-
1. Setting up the client `.env` file (Placed in the root of your `client` folder)
157
-
158
-
```
159
-
REACT_APP_BACKEND_URL="http://localhost:3001"
160
-
```
161
-
162
-
2. Setting up `axios.ts`
163
-
164
-
> Note: Since we're running poll voting app locally, we'll need to provide some extra information that normally Shibboleth would provide to us.
165
-
166
-
> Your `axios.ts` file should look like the following:
167
-
168
-
```
169
-
export const instance = axios.create({
170
-
headers: { utorid: "utorid" },
171
-
baseURL: `${process.env.REACT_APP_BACKEND_URL}`,
172
-
});
173
-
```
174
-
175
-
3. Setting up `socket.ts`
176
-
177
-
> Note: Since we're running poll voting app locally, we'll need to provide some extra information that normally Shibboleth would provide to us.
178
-
179
-
> Your `socket.ts` file should look like the following:
0 commit comments